:nth-last-of-type (CSS3)

The :nth-last-of-type pseudo-class matches an element that has an+b-1 siblings with the same element name after it in the document tree, for a given positive or zero value for n, and has a parent element.

Syntax

:nth-last-of-type( { number expression | odd | even } ) { declaration block }

Examples having uses of: ':nth-last-of-type'