The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Selecting Elements
Hey All,
I am trying to target all the li’s in a ul after the 3rd. Is this possible?
Thanks.
yes it should be, I remember reading about it just the other day but I can’t remember where. It should be something along the lines of ul.li:nth-child(3) { }
I think that only targets the 3rd element. I want the 3rd and the 4th, 5th, and 6th.
li:nth-child(n+3)
Thank you sir!
https://css-tricks.com/9657-useful-nth-child-recipies/