Easy Tutorial
❮ Css Pr Writing Mode Pr Outline Width ❯

CSS3 :last-of-type Selector

Complete CSS Selectors Reference

Example

Specify the background color of the last p element within its parent:


Definition and Usage

The :last-of-type selector matches an element that is the last child, of a particular type, within its parent.

Tip: This is the same as :nth-last-of-type(1).


Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Selector
:last-of-type 4.0 9.0 3.5 3.2 9.6

Complete CSS Selectors Reference

❮ Css Pr Writing Mode Pr Outline Width ❯