:only-of-type
:only-of-type – pseudo-class | Selectors Level 3
The :only-of-type
matches element that is only child of its parent element of given type.
Syntax
element:only-of-type{
/* ... */
}
:only-of-type {
/* ... */
}
See the Pen :only-of-type by majadc (@majadc) on CodePen.