title: Can I write a CSS selector selecting elements NOT having a certain class or attribute?
body: <p>I would like to write a CSS selector rule that selects all elements that <em>don't</em> have a certain class. For example, given the following HTML:</p>
  
  <pre><code>&lt;html class="printable"&gt;
      &lt;body class="printable"&gt;
          &lt;h1 class="printable"&gt;Example&lt;/h1&gt;
          &lt;nav&gt;
              &lt;!-- Some menu links... --&gt;
          &lt;/nav&gt;
          &lt;a href="javascript:void(0)" onclick="javascript:self.print()"&gt;Print me!&lt;/a&gt;
          &lt;p class="printable"&gt;
              This page is super interresting and you should print it!
          &lt;/p&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I would like to write a selector that selects all elements that don't have the "printable" class which, in this case, are the <em>nav</em> and <em>a</em> elements.</p>
  
  <p>Is this possible?</p>
  
  <p>NOTE: in the actual HTML where I would like to use this, there are going to be a lot more elements that <em>don't</em> have the "printable" class than do (I realize it's the other way around in the above example).</p>