a
:nth-child(-n + a)
Selector: :nth-child(-n + 3 )
:nth-child(-n + 3 )
What gets selected: .
1
2
3
4
5
6
7
8