HTML and CSS Reference
In-Depth Information
Name
:last-child
Applies to:
Any element
Description:
Matches an element when it is the last child of another element. Thus, div:last-child will
select any div that is the last child of another element, notthe last child element of any div .
Examples:
td:last-child {border-right: 1px solid;}
p:last-child {margin-bottom: 2em;}
Search WWH ::




Custom Search