Log in

View Full Version : Form TextBox Height



annies44
03-16-2006, 12:15 AM
Is there a way to make the default height of a single line text box smaller? Also, give it a different border color?

Thanks....

jscheuer1
03-16-2006, 01:36 AM
<input type="text" style="font-size:.75em;border:2px inset pink;">

Instead of inset you can use outset, solid or dashed. Also, you can get really creative and specify border-top, border-right, border-bottom and border-left. Each can be a different thickness, style and color. An em is the usual size of a font so, .75em as used here, is about a 3/4 size input.