Aquí hay un cuadro de texto de entrada HTML:
<input type="text" id="text" name="text_name" />
¿Cuáles son las opciones para definir el tamaño de la caja?
¿Cómo se puede implementar en CSS?
Se puede establecer su "anchura":
<input type="text" id="text" name="text_name" style="width: 300px;" />
o incluso mejor definir una clase:
<input type="text" id="text" name="text_name" class="mytext" />
y en un archivo CSS separado aplicar el estilo necesario:
.mytext {
width: 300px;
}
Si quieres limitar el número de caracteres que el usuario puede escribir en esta caja de texto puedes utilizar el atributo maxlength
:
<input type="text" id="text" name="text_name" class="mytext" maxlength="25" />
El atributo size
también funciona
``html
Prueba esto
<input type="text" style="font-size:18pt;height:420px;width:200px;">
O bien
<input type="text" id="txtbox">
con el css:
#txtbox
{
font-size:18pt;
height:420px;
width:200px;
}