Menu Riverview Church

NTH-OF-TYPE

The nth-of-type pseudo-class 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

AN+B

EVEN

ODD

INTERNAL

first-child

first-of-type

last-child

last-of-type

nth-child

nth-last-child

nth-last-of-type

only-child

only-of-type

EXTERNAL

World Wide Web Consortium (W3C)