I've tried several combinations to try and select a parent row but nothing seems to work. Maybe it is not possible. If someone could help explain how to achieve this through either css or sass it would be much appreciated.
The goal is to add a gray background to a row, , if that row contains an empty column, .
I've tried some variations of the following:
tr > td:empty {
background-color: #f3f3f3;
}
Example
<table>
<thead></thead>
<tbody>
<tr>
<td>No</td>
<td>empty</td>
<td>cells</td>
<td>here</td>
</tr>
<tr>
<td>Does</td>
<td>have</td>
<td>empty</td>
<td>cell</td>
<td></td>
</tr>
</tbody>
<tfoot></tfoot>
</table>