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

only-of-type

Description

The only-of-type pseudo-class for CSS represents an element that is the only sibling of its type.

It is the same as :first-of-type:last-of-type.

Syntax

selector:only-of-type
{
    property: value;
}

Examples

1 · CSS

2 · JS