title: CSS Change child element font color on parent hover
body: <p>I'm trying to make it so when I :hover over a td, the span inside changes to white and the background of the td changes to blue. However, none of the similar questions seemed to help me on this.</p>
  
  <p>First row of table for example:</p>
  
  <pre><code>&lt;tbody&gt;
       &lt;tr&gt;
  
          &lt;td&gt;
              &lt;h4&gt;
                  &lt;span&gt;
                      &lt;strong&gt;Account Holder Collection Procedures&lt;/strong&gt;
                  &lt;/span&gt;
              &lt;/h4&gt;
          &lt;/td&gt;
  
          &lt;td&gt;
              &lt;h4&gt;
                   &lt;span&gt;
                       &lt;strong&gt;AMVIR Help Sheet&lt;/strong&gt;
                   &lt;/span&gt;
              &lt;/h4&gt;
          &lt;/td&gt; 
  
      &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>Here's some CSS I've tried that <strong>doesn't</strong> work:</p>
  
  <pre><code>td:hover &gt; h4 &gt; span{
  color: #fff !important;
  }
  
  td:hover &gt; span{
  color: #fff !important;
  }
  
  td:hover ~ span{
  color: #fff !important;
  }
  
  td:hover + span{
  color: #fff !important;
  }
  
  td:hover span{
  color: #fff !important;
  }
  </code></pre>
  
  <p>This makes the td background the right color, but will only change the span color if you mouse over the span, not the td:</p>
  
  <pre><code>td:hover{
  background: #0073a5;
  }
  
  span:hover{
  color: #fff !important;
  }
  </code></pre>
  
  <p>This is what the above CSS looks like if I put my mouse on the td, but not the span:</p>
  
  <p><a href="https://i.stack.imgur.com/xvxio.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xvxio.png" alt="enter image description here"></a></p>
  
  <p><strong>Solution:</strong> </p>
  
  <pre><code>div[class*="et_pb_tab_"] td:hover span{
      color: #fff !important;
  }
  </code></pre>