Click to See Complete Forum and Search --> : change color inside a <text> element


BananaQuaalude
12-11-2003, 02:21 PM
I know how to change the background of a text element, but how do I change the color of the text inside it?

I want red numbers to show up in certain <text> elements in the form.

???

soccer362001
12-11-2003, 04:00 PM
<style type="text/css">
textarea {color:white; background-color:dimgray; font-family:arial, sans-serif;}
</style>

pyro
12-11-2003, 04:04 PM
dimgray is not a valid color name. See http://www.w3.org/TR/REC-CSS2/syndata.html#color-units for a list of valid colors.

soccer362001
12-11-2003, 04:05 PM
You can blame Jona on that one I got it off his site and didnt bother to edit it.

pyro
12-11-2003, 04:06 PM
I'm not blaming anyone. Simple pointing out that it is not valid and should not be used. Use the hex value, instead.

BananaQuaalude
12-11-2003, 04:48 PM
Okay- but how do I tie that to my text field?

soccer362001
12-11-2003, 04:49 PM
put it in the head tag

BananaQuaalude
12-11-2003, 04:54 PM
Right on- thanks!!

soccer362001
12-11-2003, 04:55 PM
Your welcome