call another class on hover in CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover class

Description

call another class on hover in CSS

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">
.first {<!--  ww w . j a v a 2 s .  c  om-->
   background:Chartreuse;
}

.first:hover {
   background:yellow;
   cursor:pointer;
}
</style> 
 </head> 
 <body> 
  <div class="first">
    Lorem ipsum d 
  </div>  
 </body>
</html>

Related Tutorials