a quick (dumb) question... How can I make the background color in the text area (input box) of the below code a different color? Is it even possible? <div class="subscribe"> <form method=post action=(removed)> <table border=0> <tr> <td colspan=2><font color="660033">Subscribe to our newsletter</font></td> </tr> <tr> <td><input type="text" name="YMLP0" size="10"></td> <td><input type="submit" value="Submit"></td> </tr> <tr> <td colspan=2></td> </tr> </table> </form> </div> Code (markup): Thanks!
This will do it: <td><input type="text" style="background:#B0D2D7" name="YMLP0" size="10"></td> Code (markup): Obviously change the hex colour to what ever you want.
It is also possible to do it using javascript. For example if a required field is not filled in you could highlight it in a bright color. see http://www.noblemarine.co.uk/dinghyinsurance.php3 for an example.
I myself have had problems with using just "background", seems to not work for me, so just in case, here is what I use: style="background-color: #eaeaea" HTML: Which would make your text field <td><input type="text" name="YMLP0" size="10" style="background-color: #eaeaea"></td> HTML: