title: CSS Set Table Cell Background Color Using Text Inside Table Cell
body: <p>Have basically the same problem as <a href="https://stackoverflow.com/questions/1041833/possible-to-fill-a-table-cell-with-a-bg-color">this</a> - text has a background color set and is in a table cell. Text background color is only behind the text, and does not fill the entire table cell, which it should.</p>
  
  <p>The solution is normally to set a bgcolor on the table cell. Difference is that this occurs in many places throughout this particular website, and changing all the relevant table cells would take a very long time.</p>
  
  <p>Question is, is there a way to say in CSS, either of:</p>
  
  <ol>
  <li>Make the text background colour fill the whole table cell (if the text is in a table cell); or.....</li>
  <li>If a table cell contains a text element which has style x, then make that table cell have a background colour (a kind of reverse inheritance)?</li>
  </ol>
  
  <p>PS: the site was developed for IE6 originally, and IE6 already fills the entire table cell with the text's background color, so initially no issues. FF and IE 7+ work differently though.</p>