Show background to highlight on hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to Show

Description

Show background to highlight 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">
style type="text/css">
   .container {<!-- w ww .  jav  a  2s  .  com-->
   position:relative;
   -webkit-transition:color 0.6s;
   -o-transition:color 0.6s;
   -moz-transition:color 0.6s;
   -ms-transition:color 0.6s;
   transition:color 0.6s;
   -webkit-transition:background-color 0.6s;
   -o-transition:background-color 0.6s;
   -moz-transition:background-color 0.6s;
   -ms-transition:background-color 0.6s;
   transition:background-color 0.6s;
   padding:6px;
}

a:link, a:visited, a:active {
   color:Chartreuse;
   padding:6px;
}

a:hover {
   color:yellow;
   padding:6px;
}

.box1 {
   left:201px;
   bottom:36px;
   width:222px;
   border-radius:11px;
}

.box2 {
   left:456px;
   bottom:58px;
   width:67px;
   border-radius:11px;
}

.container:hover {
   background-color:blue;
}
</style> 
 </head> 
 <body> 
  <div id="" class="box1 container"> 
   <a href="#" style="font-size:120%;text-decoration:none;">Lorem ips</a> 
  </div> 
  <div id="" class="box2 container"> 
   <a href="#" style="font-size:120%;text-decoration:none;">Lore</a> 
  </div>  
 </body>
</html>

Related Tutorials