Css pseudo-classes active on hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover class

Description

Css pseudo-classes active on hover

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">
.E {<!--from  w  w w  .  ja  v  a  2  s .  c  om-->
   width:201px;
   height:201px;
   background-color:Chartreuse;
}

div.E:active {
   background-color:yellow;
}

.E:hover {
   background-color:blue;
}
</style> 
 </head> 
 <body> 
  <div class="E">
    Lorem ip 
  </div>  
 </body>
</html>

Related Tutorials