How to change bgcolor while hovering mouse on cell ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to change bgcolor while hovering mouse on cell ??

23rd Oct 2016, 6:00 PM
ZAKIUR RASHED AMIT
ZAKIUR RASHED AMIT - avatar
2 Answers
+ 2
you can use CSS to add a hover style: <table> <tr> <td>No Hover</td> <td class="t1">Hover</td> <td>No Hover</td> </tr> </table> and add this CSS td .t1:hover { background-color: blue; } hope this helps! just comment back if you have other questions, and I'll answer them :)
25th Oct 2016, 4:38 PM
Jakob Bosworth
Jakob Bosworth - avatar
0
With onmouseover event attribute.
23rd Oct 2016, 7:13 PM
Elias Papachristos
Elias Papachristos - avatar