[thelist] FW: Style Sheet Problem

James Aylard webmaster at equilon-mrc.com
Fri Jul 20 09:55:25 CDT 2001


David,

> I "heard" that it is important (it was mentioned at macromedia and was
> confirmed by this company) and has to be
>
> A:link{}
> A:active{}
> A:hover{}
> A:visited{}

    Almost. According to the W3C CSS 2 recommendation, the correct order
generally should be [1]:

a:link
a:visited
a:hover
a:active

    Of course, it all depends on what you are trying to achieve. In your
example, visited links would display no hover characteristics, while the
active color would only appear when accessing links using a keyboard. While
there may well be cases where some other order of pseudo-class would achieve
a desired effect, in most cases you would want to use the W3C ordering.

James Aylard

1. http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes





More information about the thelist mailing list