I'm currently trying to find a way to target both a table cell (TR > TD) and a hyperlink within the same row.
Here's an example of the HTML:
<div class="CourseLayout">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td height="30" valign="middle"><a href="mylink">Test Link</a></td></tr>
</table>
</div>
This is the CSS I've been using:
.CourseLayout tr:hover td, a:hover{
background-color: #F1B242;
color: #0C1A31;
}
The goal is to allow users to hover over a row, highlight it, and change the font color of that row simultaneously. Does anyone have any insights on what might be incorrect in my approach?