Pseudo-class: first-child

Support Key: CSS2
Other CSS Pseudo-Classes
link
visited
active
hover
focus
lang
= Index DOT Css by Brian Wilson [bloo@blooberry.com] =
Main Index | Property Index | CSS Support History | Browser History



   Quick Statistics   
Applicable Elements:
Any
HTML Equivalent:
NA
What is it?
Pseudo-classes are usually time or state dependent in their behavior, but this Pseudo-class is actually calculated from the document tree. The First-child Pseudo-class selects an element context that is the first child of another selector in the document element tree.
Example
Ext/Doc: p a:first-child { color: green }
(selects the first hyperlink child element of any P elements and turns the content green.)
In-Line:  NA
Browser Peculiarities

Boring Copyright Stuff....