Oct 26, 2006 - 11:04 PM
Hope the following will help you.
/* makes input elements yellow when focus is applied */
:focus are known as dynamic pseudo-classes and can
theoretically be applied to any element. Unfortunately, only a few modern browsers such
as Firefox support this functionality.
Oct 27, 2006 - 03:39 PM
I didn't know the focus pseudo-class, but as it doesn't work in Internet Explorer, i had to use this instead:
where "focused" and "notfocused" are two classes in the stylesheet.
You'll get points anyway, since I learned something new :)
Oct 27, 2006 - 11:24 PM