tools > css > nth child selector

:nth-child() Css Selector

The :nth-child() CSS pseudo-class matches elements based on their position among a group of siblings.

  • first-child:

  • last-child:

  • nth-child(odd):

  • nth-child(2):

  • nth-child(n+2):

  • nth-child(3n):

  • nth-child(3n+1):

  • nth-child(3n-1):