Ver Mensaje Individual
  #11 (permalink)  
Antiguo 18/04/2015, 11:12
Avatar de baccxus
baccxus
 
Fecha de Ingreso: mayo-2005
Ubicación: Panama city, Panama, Panama
Mensajes: 870
Antigüedad: 18 años, 10 meses
Puntos: 17
Respuesta: Formularios con CSS

A mi modo, tu ejemplo: [
Código CSS:
Ver original
  1. * {
  2.             font-family: helvetica, sans-serif;
  3.         }
  4.         fieldset {
  5.             border: #CCC 1px solid;
  6.             border-radius: 0.5em;
  7.             width: 20em;
  8.             position: relative;
  9.  
  10.         }
  11.         legend {
  12.             font-weight: bold;
  13.             color: #CCC;
  14.         }
  15.         label {
  16.             float: left;
  17.             width: 5em;
  18.             margin-right: 1em;
  19.             text-align: right;
  20.         }
  21.         input[type="text"]{
  22.             width: 15em;
  23.             padding: 0.5em;
  24.         }
Código HTML:
Ver original
  1.         <fieldset>
  2.             <legend>formulario</legend>
  3.             <p>
  4.                 <label for="nombre">Nombre</label>
  5.                 <input type="text" name="nombre" placeholder="Nombre" required />
  6.             </p>
  7.             <p>
  8.                 <label for="apellido">Apellido</label>
  9.                 <input type="text" name="apellido" placeholder="Apellido" required/>
  10.             </p>
  11.             <p>
  12.                 ...
  13.             </p>
  14.         </fieldset>
  15.     </form>
Por favor no uses tablas
__________________
Al final del día hablar es gratis, codificar no lo es

Última edición por baccxus; 18/04/2015 a las 14:12