Crear un formulario que solicite el ingreso del nombre de una persona y su edad. Aplicar el estilo 'campo' a los dos controles de tipo text.
.campo {
color:#666;
background-color:#ffa;
}
<!DOCTYPE html> <html> <head> <title>Problema</title> <link rel="StyleSheet" href="estilos.css" type="text/css"> </head> <body> <div id="contenedorform"> <form method="post" action="#"> <label>Ingrese nombre:</label> <input type="text" name="nombre" size="30" class="campo"> <br> <label>Ingrese edad:</label> <input type="text" name="edad" size="3" class="campo"> <br> <input class="botonsubmit" type="submit" value="confirmar"> </form> </div> </body> </html>
.campo {
color:#666;
background-color:#ffa;
}
#contenedorform {
width:500px;
margin-left:20px;
margin-top:10px;
background-color:#ffe;
border:1px solid #CCC;
padding:10px 0 10px 0;
}
#contenedorform form label {
width:120px;
float:left;
font-family:verdana;
font-size:14px;
}
.botonsubmit {
color:#f00;
background-color:#bbb;
border: 1px solid #fff;
}
Retornar |