Get a free trial // Grow your CSS skills // Land your dream job

Difference between and .post .name?

  • # February 4, 2013 at 8:47 pm

    What is the difference between the way this bit of css is written?

    ** {}**


    **.post .name {}**

    # February 4, 2013 at 9:05 pm

    @Rugg, `` grabs the element that has both ‘post’ and ‘name’ class where as `.post .name` grabs elements that have the ‘name’ class that are descendants of ‘post’ class

    # February 4, 2013 at 9:30 pm


    Awesome, thank you.

Viewing 3 posts - 1 through 3 (of 3 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