I have a table where a pair of tr elements make up a visual row
<table>
<tr><td>Row1</td></tr>
<tr><td>A</td></tr>
<tr><td>Row2</td></tr>
<tr><td>B</td></tr>
</table>
If the top row if each pair is hovered over, the pair of records can be highlighted:
/*1st, 3rd, etc and the following tr*/
table.highlightmessagerow tbody tr:nth-child(odd):hover,
table.highlightmessagerow tbody tr:nth-child(odd):hover + tr,
{
background-color:#FFFFC0 !important;
}
I'm trying to highlight the pair of records when the bottom row of each pair is hovered. Is this even possible?
/*2nd, 4th, etc and the preceeding tr*/
table.highlightmessagerow tbody tr:nth-child(even):hover,
table.highlightmessagerow tbody tr + tr:nth-child(even):hover
{
background-color:#FFFFC0 !important;
}