2
How to change style CSS (backgrounc-color) of an entire column when passing the mouse, using only CSS?
The table in question is as follows::
<table class="un table">
<caption>Título da tabela</caption>
<thead>
<tr>
<th>Coluna 1</th>
<th>Coluna 2</th>
<th>Coluna 3</th>
<th>Coluna 4</th>
</tr>
</thead>
<tbody>
<tr>
<td>L1 X C1</td>
<td>L1 X C2</td>
<td>L1 X C3</td>
<td>L1 X C4</td>
</tr>
<tr>
<td>L2 X C1</td>
<td>L2 X C2</td>
<td>L2 X C3</td>
<td>L2 X C4</td>
</tr>
<tr>
<td>L3 X C1</td>
<td>L3 X C2</td>
<td>L3 X C3</td>
<td>L3 X C4</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Total C1</td>
<td>Total C2</td>
<td>Total C3</td>
<td>Total C4</td>
</tr>
</tfoot>
</table>
In this case, when hovering the mouse over one of the columns, change the background-color of the entire column, including the header and footer.
See if this helps you http://stackoverflow.com/questions/848840/cols-colgroups-and-css-hover-psuedoclass/11175979#11175979
– abfurlan
Unfortunately using <caption> also changes the background in part of it
– Everton da Rosa