Forums

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

Home Forums CSS Target :after element using nth child or nth of type

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35590
    sBowers
    Participant

    Is it possible to target pseudo elements using the nth child? If it is, I can’t seem to get the syntax correct. I have speech bubbles and would like to move the little triangle at the bottom left and right based on its position.

    I have tried chaining:

     .row .panel.bubble:after:nth-child(3n+3)

    and

    .row .panel.bubble:nth-child(3n+3):after

    Maybe I have just having a “work all weekend sunday brain fart”.

    #92460
    sBowers
    Participant

    The after element is the triangle fyi.

    #92461
    jamygolden
    Member

    Your second example should work.
    http://jsfiddle.net/yfF2h/

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.