:only-child (CSS3)

The :only-child pseudo-class represents any element which is the only child of its parent.

Syntax

:only-child { declaration block }

Examples having uses of: ':only-child'