The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Select all items after 10th item
Hiya,
I’ve got an ordered list and would like to select all list items after the 10th one. Is there a way to do this with pure css with some kind of nth child selector or somethin similar?
Cheers,
emma
You would do this for your nth child selector:
:nth-child(1n+11)
The 1 is a little redundant. This works too. :nth-child(n+11)
Perfect, thanks both! :)
ok guys… what if I want have a specific css every 3 elements (to do a :nth-child(3n+3)) but only after the eleventh element ?
@bbnnt
Something like this? It works but im not too sure its semantic, i bet there is a better way.
li:nth-child(n+11):nth-child(3n+3) { }