Hover effect on the TR 's TD - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Effect

Description

Hover effect on the TR 's TD

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials