- From: Ian Hickson <py8ieh@bath.ac.uk>
- Date: Tue, 28 Mar 2000 22:21:58 +0100 (BST)
- To: Walter Ian Kaye <walter@natural-innovations.com>
- cc: MacIE-Talk@lists.boingo.com, www-style@w3.org
On Tue, 28 Mar 2000, Walter Ian Kaye wrote:
> Oh Taaaaanteeeeek... ;)
>
> In my page I have:
>
> <STYLE TYPE="text/css">
> <!--
> A:link { color: #0000FF }
> A:hover { color: #0000FF; background: #FFFF00; text-decoration: underline }
> A:active { color: #000000; background: #999999; text-decoration: underline }
> A:visited { color: #666666 }
> -->
> </STYLE>
>
> For visited links, the hover is not coloring the text blue. It worked in 4.5, but it's not working in 5.0.
>
> What's up?
The cascade is working properly. What you want is the :visited above
the :hover, since they have the same weight (011). So this is not a
bug in MacIE5.
However, even better would be:
:link { color: #0000FF; background: transparent; }
:visited { color: #666666; background: transparent; }
:link:active, :visited:active { color: #000000;
background: #999999; text-decoration: underline; }
:link:hover, :visited:hover { color: #0000FF;
background: #999999; text-decoration: underline; }
See also:
http://www.people.fas.harvard.edu/~dbaron/css/1999/09/links
--
Ian Hickson ("`-''-/").___..--''"`-._
http://www.bath.ac.uk/%7Epy8ieh/ `6_ 6 ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-' fL
Member, Mozilla Quality Assurance _..`--'_..-_/ /--'_.' ,'
Browser Standards Compliance Team (il).-'' (li).' ((!.-'
Received on Tuesday, 28 March 2000 16:22:10 UTC