<table>
<colgroup>
<col style="color: green"/>
<col style="background-color:green"/>
<col class="char"/>
</colgroup>
<tr>
<th>
Decimal
</th>
<th>
Hex
</th>
<th>
Char
</th>
</tr>
</table>
I can't figure out for the life of me why Decimal is not in green!
I need the entire column to be in green font, background-color works for some reason.
Is there a way to do this without adding a class to every tr?
I need to be able to apply a different colour to each column.
th is inside tr, hence its not taking the font color.
Here is my solution, Its Not a perfect solution, but will not have to add individual classes .
This will select the entire column as you mentioned: