- From: Tim Bagot <tsb-w3-style-0003@earth.li>
- Date: Wed, 4 Jul 2001 16:13:25 +0000 (UTC)
- To: <www-style@w3.org>
- cc: AMollah <am@freephone.fsnet.co.uk>
At 2001-07-03T08:46-0400, AMollah wrote:-
> I would prefer to use (well I can't wait to use it!)
>
> a:current{
> text-decoration: none
> colour: black
> }
>
> a:hover{
> colour: red
> }
>
> but I see that the same problem would apply in that when the mouse is moved
> over the "current" link the colour would change and the underline would
> reappear.
The underline would not reappear, because the first selector would still
match and the second rule does not set the text-decoration property. The
colour change can be prevented by reversing the order of the rules, so
that a:current will override a:hover instead of the other way round.
Tim Bagot
Received on Wednesday, 4 July 2001 12:13:29 UTC