I have a table created in the specific layout provided below:
<thead>
<th></th>
<th></th>
<th></th>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
My goal is to highlight an entire column when its header is hovered over. For example, if I hover over the second <th> from
, let's say making it blue, then the corresponding second <td>
in every <tr>
will be highlighted in yellow as a column. I've attempted various methods but so far have only been successful in highlighting the header and not the entire column. I would like to maintain the structure within a table format. Can anyone provide assistance with this?