title: Not sure how to use css selectors
body: <p>My html looks something like this:</p>
  
  <pre><code>&lt;div id="whatever"&gt;
      &lt;div&gt;
          &lt;p&gt;&lt;/p&gt;
          &lt;p&gt;&lt;/p&gt;
      &lt;/div&gt;
      &lt;div&gt;
          &lt;p&gt;&lt;/p&gt;
          &lt;p&gt;&lt;/p&gt;
          &lt;p&gt;&lt;/p&gt;
      &lt;/div&gt;
      &lt;div&gt;
          &lt;p&gt;&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now, I would need to select all <code>p</code> elements, except the ones in the last <code>div</code> in the "whatever" one. I tried <code>#whatever&gt;:not(:last-child)div&gt;p</code>, but didn't seem to work. Any help would be appreciated.</p>