News for hackers. Stuff that matters.
Re:Show HN: CSS Quality Guide by talmand on Friday July 10, 2015 @01:35PM (#9865437)
I had an explanation as to why your CSS was wrong but then I realized an HTML example is needed. I'm assuming you mean something like this:

    <section class='content'>
      <div class='post'>
        <h1 class='title'></h1>
      </div>
    </section>

    <section class='sidebar'>
      <div class='post'>
        <h1 class='title'></h1>
      </div>
    </section>
If so, what you say would indeed happen.

Also, I've never thought of .post--title as a form of namespacing. I always understood it to be more like .post .title, as in nesting with SCSS or Less. Not saying you're wrong, just never thought of it that way.

There are no comments on this comment yet.