CSS: input[type="text"]
This nifty little CSS attribute selectors is clean way to style form input elements.
FYI: It does not work in IE6.
#form1 input[type="text"] {
width:100px;
}
#form1 input[type="submit"] {
width:auto;
}
Categories: HTML/CSS