Grow your CSS skills. Land your dream job.

Difference between .post.name 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 {}**

    vs

    **.post .name {}**

    # February 4, 2013 at 9:05 pm

    @Rugg, `.post.name` 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

    @chrisp

    Awesome, thank you.

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

You must be logged in to reply to this topic.

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