Grow your CSS skills. Land your dream job.

css pseudoclass selector

  • # March 28, 2013 at 5:51 pm

    I want to select the second div in my markup with css using :nth-child but I cannot make it work.

    I have this markup generated by a plugin:

    FIRST

    Lorem ipsum sit dolor amet

    SECOND

    Lorem ipsum sit dolor amet

    THIRD

    Lorem ipsum sit dolor amet

    I’ve modified the markup, this is what I need to modify :

    SECOND

    Can someone help me with this ?

    # March 28, 2013 at 6:03 pm

    `.toggle-default:nth-child(2) .toggle_title`

    # March 28, 2013 at 6:05 pm

    @Chrisp Has your answer I believe since you specifically asked for the title to be targeted.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".