Use a pseudo selector as easwee said. For example, to make a form element green when it is valid and red to be invalid, follow these steps:
:invalid { background: #ffdddd; } :valid{ background:#ddffdd; }
If you need a full link to them, go to the link to Mozilla.
PS Sorry, if I do these answers incorrectly, I am new to this community.
Remixz Mar 29 '11 at 22:01 2011-03-29 22:01
source share