Get a free trial // 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:


    Lorem ipsum sit dolor amet


    Lorem ipsum sit dolor amet


    Lorem ipsum sit dolor amet

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


    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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed