W3C home > Mailing lists > Public > www-style@w3.org > July 2001

Re: activel inks?

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>
Message-ID: <Pine.LNX.4.33.0107041608030.1183-100000@windle.hack>
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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:58 UTC