Pseudo-class:
last-child

Support Key: [N6]
Other Document-Tree
Pseudo-Classes

root
empty
not
first-child
first-node
last-node
lang
= Index DOT Css by Brian Wilson =
Main Index | Property Index | CSS Support History | Browser History



   Quick Statistics   
Applicable Elements:
Any
HTML Equivalent:
NA
What is it?
The Last-child Pseudo-class selects an element context that is the last child node of another selector in the document element tree. This meaning may be clear, but the targets (which is the child element, and which is the parent) may be confusing. If a selector looks like this: "strong:last-child", it means "all STRONG elements that are the last-child node of other elements, NOT "all last-child nodes of STRONG elements." If you want to specify all last-child nodes of STRONG elements, the syntax would look like: "strong :last-child" (notice the space in there indicating a descendent selector.)
Example
Ext/Doc: p a:last-child { color: green }
(selects the last hyperlink child element of any P elements and turns the content green.)
In-Line:  NA
Browser Peculiarities

Boring Copyright Stuff....