HTML CSS examples for CSS Widget:Hover Effect
Hover effect on the TR 's TD
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .mainTr {<!-- w w w . j a v a2s . c om--> background:Chartreuse; color:yellow; padding:11px; } .mainTr:hover { background-color:blue; color:pink; } </style> </head> <body> <table> <tbody> <tr class="mainTr"> <td> <b>Lorem ipsum do</b> </td> <td> <b>Lorem ip</b> </td> </tr> </tbody> </table> </body> </html>