Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Selecting Elements

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #33976
    justinede
    Member

    Hey All,

    I am trying to target all the li’s in a ul after the 3rd. Is this possible?

    Thanks.

    #85246
    furrball1383
    Member

    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) {
    }

    #85248
    justinede
    Member

    I think that only targets the 3rd element. I want the 3rd and the 4th, 5th, and 6th.

    #85249
    chrisburton
    Participant

    li:nth-child(n+3)

    #85252
    justinede
    Member

    Thank you sir!

    #85283
    Chris Coyier
    Keymaster
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.