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

nth-of-type

Description

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

Syntax

selector:nth-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