:nth-child()

The :nth-child pseudo-class is used to add styling to elements based on the numbering in the element tree.

Syntax



element:nth-child (odd | even | number | expression) {
  property: value;
}