|
The :hover pseudo-class allows you to create roll over affects. For example: a:hover {color: red;} In this example, a link is red if you move the mouse over it. You can change much more than colour with a:hover. Here are some example styles:
If you have the styles in your style sheet, you can add a link to the page and assign it one of the classes in the table. <a href="sales.htm" class="face">Sales brochure</a> The appearance changes as you move the mouse over it. These examples all apply to the <a> tag but the CSS 2.0 specification says that hover can apply to any tag. I doubt that browsers support this yet. |
More information a:link, a:active and a:visited a:hover |