title: How to target elements that only contains a space(&nbsp;) with CSS?
body: <p>I'm having a table and there are some columns with the following code:</p>
  
  <pre><code>&lt;td class="t-Report-cell" align="right" headers="KORTING_PERC"&gt;&amp;nbsp;&lt;/td&gt;
  </code></pre>
  
  <p>I would like to be able to target the TD's who are having the headers="KORTING_PERC" and contains only the html variant of a space.</p>
  
  <p>I've tried the following:</p>
  
  <pre><code>td[headers="KORTING_PERC"]:contains("&amp;nbsp;")
  td[headers="KORTING_PERC"]:contains(" ")
  td[headers="KORTING_PERC"]:not(:empty)
  </code></pre>
  
  <p>Using the following with a red background:</p>
  
  <pre><code>[headers="KORTING_PERC"]:not(:contains(" ")){
    background: red;
  }
  </code></pre>
  
  <p>Results in:</p>
  
  <p><a href="https://i.stack.imgur.com/oePi5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oePi5.png" alt="Result"></a></p>