0
Table - Example
table,
th,
td {
border: 1px solid black;
}
tr:hover {
background-color:coral;
}
<table>
<tr>
<th>Col 1</th>
<th>Col 2</th>
<th>Col 3</th>
</tr>
<tr>
<td>Dados1</td>
<td>Dados1</td>
<td rowspan="2">Dados1 Rowspan</td>
</tr>
<tr>
<td>Dados1</td>
<td>Dados1</td>
</tr>
<tr>
<td>Dados2</td>
<td>Dados2</td>
<td rowspan="2">Dados2 Rowspan</td>
</tr>
<tr>
<td>Dados2</td>
<td>Dados2</td>
</tr>
</table>
How can I use the effect Hover to change the full line color as in the image below ?
Example :
What seems to be the problem
hover
is working?– MagicHat
For example when the user passes the mouse all the information of the data would be with same background , ie the whole line and not only picking a few lines.
– stringnome
Dude is confused this, what you want is that just the
td
(Table Data) containing the attributerowspan
who receive thehover
change the background? That’s the answer below , resolves... If not, try to give the right name to the elements you want to manipulate if it doesn’t get confused.– MagicHat
You want when hovering over an item of the row the whole row to change the background or each item of the separate table?
– Wictor Chaves
I’m sorry I was really confused kk , already edited the statement..
– stringnome