title: Unable to target a class within a class in CSS
body: <p>I'm attempting to target a class within a class but it is having no effect.</p>
  
  <p>My attempt:</p>
  
  <pre><code>&lt;style&gt;
  .parentclass .childclass ul li a{
      color:red;
      background:black;
  }    
  &lt;/style&gt;
  
  &lt;div class="parentclass"&gt;
      &lt;ul class="childclass"&gt;
          &lt;li&gt;&lt;a href="#"&gt;Item 1&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;Item 2&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>However if I target only the parent class it works just fine.  </p>
  
  <pre><code>.parentclass ul li a{
      color:red;
      background:black;
  }
  </code></pre>
  
  <p>Is there something I'm missing?</p>
  
  <p>Here is a JSFiddle link
  <a href="https://jsfiddle.net/74Laypbq/" rel="nofollow">https://jsfiddle.net/74Laypbq/</a></p>