Answers
Oct 26, 2006 - 11:04 PM
HI David,
Hope the following will help you.
/* makes input elements yellow when focus is applied */
input:focus {background-color:yellow;}
: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.
Hope the following will help you.
/* makes input elements yellow when focus is applied */
input:focus {background-color:yellow;}
: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
Thanks multani.sarbjit.
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 :)
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
Thanks David
Add New Comment