I am creating a project to exercise some things, and I made a table with fictitious data, where, when mouseover, the corresponding line changes color. Except I did not want this to happen to the title line. What can I do? I tried everything but it did not work out.
HTML:
<table id="esttt">
<thead>
<tr><td colspan="2">DADOS</td></tr>
<tr>
<td>ABC</td>
<td>22.7%</td>
</tr>
<tr>
<td>DEF</td>
<td>42.5%</td>
</tr>
<tr>
<td>GHI</td>
<td>12%</td>
</tr>
<tr>
<td>JKL</td>
<td>54.6%</td>
</tr>
</thead>
</table>
And CSS:
#esttt{
width:300px;
}
#esttt tr{
line-height:30px;
}
#esttt tr:hover{
background:#6B6BB6;
color:#FFF;
}
#esttt thread{
color:#FFF;
font-weight:bold;
}
#esttt thread:hover{
color:#FFF;
font-weight:bold;
}