.col2 .positive {
background:green;
}
.col2.positive {
background:green;
}
.col3 .positive {
background:blue;
}
td{
border:1px solid blue;
padding:5px;
}
<table>
<col class="col1" />
<col class="col2" />
<col class="col3" />
<tbody>
<tr>
<td></td>
<td class="positive"></td>
<td></td>
</tr>
<tr>
<td></td>
<td class="negative"></td>
<td class="positive"></td>
</tr>
<tr>
<td></td>
<td class="positive"></td>
<td></td>
</tr>
</tbody>
</table>
Given the HTML code provided, what is the correct way to select all positive values in col2 using CSS? The current method used does not seem to work as intended.
Any suggestions on how to achieve this properly?