<table class="table table-hover" border="1">
<tbody>
<tr>
<td rowspan="2">potato</td>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td rowspan="2">banana</td>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td rowspan="2">apple</td>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</tbody>
</table>
When I use the table-hover class on a table using rowspan it doesn't color the full row when pointing to the second row in the category (at least in my specific example).
I want it to function this way:
- When hovering on an even row: it should change the bg color of the category of it too.
- When hovering on a category: it should change the bg color of both rows linked to the category.
Is there a way to overcome this situation?
Preferable only using CSS
Here is a jsfiddle for my code: https://jsfiddle.net/3t76xq66/1/