:only-child

The :only-child pseudo-class only applies to a child element if it is the only one of the parent.

Syntax



element:only-child {
  property: value;
}