Mouseover/hover effect - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Effect

Description

Mouseover/hover effect

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">
tr.S {
   background-color:Chartreuse;
}

tr.S:hover {
   background-color:yellow;
}
</style> <!--   w w  w.j  a  v  a2s .c om-->
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr class="S"> 
     <td>Lorem i</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials