From W3C Wiki
< CSS‎ | Selectors
Revision as of 20:49, 26 September 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Pseudo-class :last-of-type

The :last-of-type pseudo-class represents an element that is the last sibling of its type in the list of children of its parent element. Same as :nth-last-of-type(1).


selector:last-of-type{ properties }


The following selector represents the last data cell td of a table row tr:


 tr > td:last-of-type{
   color: red;



Css3 selectors last-of-type.png

CSS defines the :last-of-type pseudo-class selector in :last-of-type pseudo-class.