nth-last-of-type

The nth-last-of-type CSS pseudo-class represents the same elements that would be matched by :nth-last-child(|An+B| of S), where S is a type selector and namespace prefix matching the element in question.

Syntax

selector:nth-last-of-type(An+B)
{
    property: value;
}

Examples

1 · An+B

2 · even

3 · odd

HomeMenu