:nth-last-child(n)

Term side of the Card
Topic: Pseudo Classes
Unit title: :nth-last-child(n)
Categories: Pseudo-class
Explanation side of the Card

Explanation: The pseudo-class that selects elements based on their position from the end of their parent's child list. It works similarly to `:nth-child(n)`, but counts from the last child to the first, enabling to target elements relative to the end of the list.

Browser compatibility:
  • The chrome browser supports this feature starting from version 4
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 3.5
  • The safari browser supports this feature starting from version 3.1
Availability: