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.

Last modified on 26 September 2011, at 20:49