HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

nth-last-of-type

Description

The nth-last-of-type pseudo-class for CSS 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 · CSS · An+B

2 · CSS · even

3 · CSS · odd

4 · JS · An+B

5 · JS · even

6 · JS · odd