CSS nth-child TesterSee An+B, ranges, reverse counting and negation against a live numbered collection
CSS nth-child Tester
Today
div:nth-child(2n+1)12 selected1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
div:nth-child(2n+1)
Count from
Logic
Display
Negate selection
Items24
Step (A)2
Offset (B)1
An+B: 2n+1
Selected
Default
CSS
HTML
Just click on the desired preset
OddSelected
Even
Third
First Three
Range
From Five
Every Fourth
Every Fifth
First Five
Last Three
Feedback