QUOTE(pyost @ Jul 30 2006, 06:23 AM)

This is a very handy function, and there is another place where it is quite useful. In CSS, you can create buttons that change their background colour when the mouse pointer is above them. However, this can be achieved by using JavaScript and HTML.
CODE
<td width="60" onmouseover="this.bgColor='#9db5c8';" onmouseout="this.bgColor='#c0d3e7';">
The table cell will be #c0d3e7 until the mouse pointer comes to it. Then it will become #9db5c8.
That's correct, you can achieve that with JavaScript and HTML but only to say that this can also be achieved with the CSS's :hover pseudo-class that everyone use with the HTML's A tag, but do you know that you can also use this pseudo-class with other elements not only with the A tag???? honestly i don't, and i just discover it a few days ago.
I'm talking about the
:hover, :active and :focus pseudo-classes, you can use these pseudo-classes with other HTML elements like forms, input boxes, legend, fieldsets, etc. to achieve awesome effects in your pages, and the nice thing is that when you validate your CSS you dont worry about it because are VALID, but as usual this doesn't work fine with IE.
So, please visit the following page
Contact Us first using Firefox and then with IE to see what i'm talking about.
Best regards,
Comment/Reply (w/o sign-up)