Previous Message
Next Message

Proper a approach

Sent by jérôme_coupé on 6 August 2004 12:12


Hello there,

Order of class selectors does matter as far as the cascade is concerned. 
<http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes 
<http://www.w3.org/CSS2/selector.html#dynamic-pseudo-classes>>

[...] Note that the A:hover must be placed after the A:link and 
A:visited rules, since otherwise the cascading rules will hide the 
'color' <colors.html#propdef-color> property of the A:hover rule. 
Similarly, because A:active is placed after A:hover, the active color 
(lime) will apply when the user both activates and hovers over the A 
element. [...]

Following these rules, those pseudo-classes should have this order:
a:link { color: red }
a:visited { color: blue }
a:hover { color: yellow }
a:active { color: lime }

Little reminder for that order is :
LoVe HaTe

HTH,

Jérôme Coupé

> Hello all-
>
> I have a pretty basic question, what is the proper/correct way to do a's,

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: