:nth-child()
The :nth-child(an+b) pseudo-class notation represents an element that has an+b-1 siblings before it in the document tree, for any positive integer or zero value of n. 6.6.5.2. :nth-child() pseudo-class
Links about :nth-child()
:nth-child()
The :nth-child() CSS pseudo-class matches elements based on their position in a group of siblings.
Code sample
li:nth-child(2n) {
border: 5px solid fuchsia;
}
Explore other pages
- aria-current
Indicates the current item within a set of related elements.
- a
A hyperlink.
- JSON.stringify()
Returns a String in UTF-16 encoded JSON format
- clip-path
Specifies a basic shape or references a clipPath element to create a clipping path.