Pseudo Class

From CSS Discuss

Jump to: navigation, search


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


a:visited { } 

matches links to pages in the browser history.

Neat trick with hover: selector:


Internet Explorer :

Personal tools