The only-child CSS pseudo-class represents an element that is the only child of its parent.
It is the same as :first-child:last-child or :nth-child(1):nth-last-child(1).
Syntax
selector:only-child { property: value; }
The only-child CSS pseudo-class represents an element that is the only child of its parent.
It is the same as :first-child:last-child or :nth-child(1):nth-last-child(1).
selector:only-child { property: value; }