![]() |
|
|
The :active, :link, and :visited pseudo-classes allow you to customise how the browser displays links (text that the user clicks to jump to another page). You have three options:
You can set any font or text formatting properties on these anchor pseudo-classes, including color, font-size, font-weight, and text-decoration. For example:
a:link {color: blue;}
a:visited {color: maroon;}
a:active {color: green;}
Set text-decoration to "none" to remove the underlining from the link text:
a:visited {color: blue; text-decoration: none;}
Note: Internet Explorer 3.0 does not support the a:active class. You'll also find that if you set a property on a:link, visited links inherit that property. You can also use a:hover to change the appearance of a link when the mouse hovers over it. For example: a:hover {color: red;}
|
More information a:link, a:active and a:visited |