Within a table cell, I have another table. The outer table has a hover effect applied to it, but I want to prevent the inner table with the id "table_I_don_not_want_to_hover" from inheriting this hover behavior like the rest of the cells and rows. I need to maintain its original color scheme. Unfortunately, I am unable to modify the CSS that triggers the hover effect on the entire table as it is located in a separate file which I do not have access to. Therefore, I must come up with an alternative solution to override the hover effect for this specific table:
<table cellspacing="0" cellpadding="5px">
<tbody>
<tr><td colspan="100" style="Text-Align:Center;Font-Size:16Px;Font-Weight:Bold">Appeso</td></tr>
<tr>
<th nowrap="" class="hc" style="width: 50px">
........
</th>
<th nowrap="" class="cl3">row 1</th>
<th nowrap="" class="cl3">row 2</th>
<th nowrap="" class="cl3">row 3</th>
<th nowrap="" class="cl3">row 4</th>
<th nowrap="" class="cl3">row 5</th>
</tr>
</tbody>
<tbody class="class1">
<tr class="">
<td nowrap="" class="cl2" rowspan="8">
<input type="checkbox" value="1111" name="chk_p">
</td>
<td nowrap="" rowspan="8">
<td nowrap="" class="c">row 1</td>
<td nowrap="" class="c ">row 2</td>
<td nowrap="" class="c">row3</td>
<td nowrap="" class="c">row4</td>
<td nowrap="" class="c">row5</td>
<tr id="id" hidden="" style="display: table-row;">
<td class="cl no_hover"></td>
<td colspan="8" class="cl no_hover">
<table id="table_I_don_not_want_to_hover" cellspacing="0" style="border-collapse: collapse; width: 100%%">
<tbody><tr class="no_hover">
<td class="dc_header_taglia">row</td>
<td class="dc_header_taglia">row</td>
<td class="dc_header_taglia">row</td>
<td class="dc_header_taglia">row</td>
<td class="dc_header_taglia">row</td>
</tr>
.............
I attempted the following:
.no_hover{
pointer-events: none;
}
However, this solution disabled all events including the jQuery code responsible for showing/hiding rows. As I am not very experienced with CSS, additional attempts were made:
.tr:hover > div {
opacity: 0.5;
}
.tr:hover > div:hover {
opacity: 1.0;
}
.td:hover > div {
opacity: 0.5;
}
.td:hover > div:hover {
opacity: 1.0;
}
I'm still struggling to find the right CSS solution without disrupting the functionality of the table.