title: CSS style :nth-child even nested elements
body: <p>How can I style <code>:nth-child(4n)</code> even with the element is <strong>nested inside a div</strong>, example here is <code>p</code> inside <code>div</code>:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>p:nth-child(2) {
      background: red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;p&gt;The first paragraph.&lt;/p&gt;
  &lt;div&gt;
    &lt;p&gt;The second paragraph.&lt;/p&gt;
  &lt;/div&gt;
  &lt;p&gt;The third paragraph.&lt;/p&gt;
  &lt;p&gt;The fourth paragraph.&lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>