SteveD
Feb 21 2007, 11:14 PM
I'm creating an HTML form and when using a text input field I would like the box (where you type) to be shaded. I've seen this before to indicate a required field. How do I make that happen?
<input type="text" size="20" name="misc" value="">
Thx
pandy
Feb 21 2007, 11:28 PM
Shaded? Do you mean you want it to have a different background color?
http://htmlhelp.com/reference/css/color-ba...background.htmlCSS
CODE
.req { background: #fff8dc; color: #000 }
HTML
HTML
<input class="req" value="This field is required">
<input class="req" value="This field is required">
<input value="This is not">
SteveD
Feb 21 2007, 11:39 PM
Yes, I meant the background color changed. Thanks, I'll give this a try.