Chris Blake wrote: > What about a:active and/or a:current?
The latter is a mere proposal, though an interesting one. You might find experimental implementations, but hardly anything useful in practice now or in the near future. The :active pseudo-class is an old invention (in the www timescale) but with vague definition in CSS recommendations and drafts and inconsistent interpretation in browsers. Most importantly, it relates to the _state_ of the link, as "active" in some dynamic sense (e.g., the user just clicked on it), not to its role on the page or its URL. > I'm uncertain but a:hover works in style sheets without having to add > an ID or class of 'hover' to the links so maybe it's the same with the > former two. The :hover pseudo-class is a different beast, and it is indeed fairly well supported, especially for links. Its meaning is different, and it would actually be impossible to replace the use of :hover with a class, since it is a "dynamic" pseudo-class, related to the state of an element (of being hovered) - something you cannot do with classes, since if an element has a class (as opposite to a pseudo-class), it has the class in all states of the element. -- Yucca, http://www.cs.tut.fi/~jkorpela/ ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/