Re: MacIE 5.0 CSS bug

From: Walter Ian Kaye <walter@natural-innovations.com>
Date: Tue, Mar 28, 2000, 12:48 PM

> 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?

What's up is our quality and strictness!

Sounds like you actually found a bug in 4.5 that was fixed in 5.0.

In your example, the :visited rule comes after the :hover rule and supercedes
it since they have the same specificity.

Try this (I just moved the :visited rule to immediately after the :link rule):

<STYLE TYPE="text/css">
<!--
A:link    { color: #0000FF }
A:visited { color: #666666 }
A:hover   { color: #0000FF; background: #FFFF00; text-decoration: underline }
A:active  { color: #000000; background: #999999; text-decoration: underline }
-->
</STYLE>

Tantek

Received on Tuesday, 28 March 2000 16:13:38 UTC