Pseudo Class
From CSS Discuss
Specification
http://www.w3.org/TR/CSS21/selector.html#q15
Pseudo-class selectors select parts of a document based on some characteristics other than tag name, attributes or content. They include:
- :first-child
- The link pseudo-classes, that apply only to the Link Element
- :link
- :visited
- The dynamic pseudo-classes (with limited support from Internet Explorer - which only supports them on links):
- :hover (being mouseovered)
- :active (being clicked upon)
- :focus
- :lang - The language pseudo-class
Example
a:visited { }
matches links to pages in the browser history.
Neat trick with hover: selector: http://www.uoguelph.ca/~stuartr/articles/missinglink.shtml
Implementation
- IE6 (MsIEsix): pseudo-class, pseudo-element, pseudo-CSS
