A:hover and named anchors

The named heading "A:hover and named anchors" is now not subject to the same hover effects as the link below in Mozilla, Netscape 6+, or Opera 7. This is due to the combination of pseudo-classes.

However, Opera 5&6 do not support combining pseudo-classes. In fact, Opera 5&6 treat the selectors as simply "a:link, a:visited" which can create additional problems. Opera 5&6 will render any property that is not declared in another (the real) "a:link, a:visited" rule. Notice on the links below that the background is yellow, but the text color is still blue.

This is a link to the above heading

a {display: block}
a:link, a:visited {text-decoration: none; color: blue}
a:link:hover, a:visited:hover {text-decoration: underline; color: red; background: yellow}

<h1><a name="target">A:hover and named anchors</a></h1>
<-- Back to the example problem page
Test date: June 20, 2002
Modified: June 25, 2002
Modified: March 3, 2003