views:

228

answers:

1

How can I apply a font color only to hyperlinks which have already been visited and are being hover by the mouse?

Essentially, what I want to do is

a:visited:hover {color: red}
+1  A: 

Yes that is possible.

Here’s an example:

<style type="text/css">
    a:link:hover {background-color:red}
    a:visited:hover {background-color:blue}
</style>

<a href="http://www.google.com/"&gt;foo&lt;/a&gt;&lt;a href="http://invalid/"&gt;bar&lt;/a&gt;
Gumbo
Is it supported in all browsers. Doesn't seem to work in Firefox 3.5
Worked for me on FFox 3.5 and IE7, but not IE6.
jimyi
Looks like it works in FF 3.5. Any work around for IE 6?