:nth-last-of-type()

The :nth-last-of-type pseudo-class is used to style elements of the specified type based on the numbering in the element tree. Unlike the :nth-of-type pseudo-class, the countdown is not from the first element, but from the last.

Syntax



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