Use box-shadow to highlight hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover on list

Description

Use box-shadow to highlight 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">
div {<!--  ww  w .  java2 s.  co  m-->
   float:left;
   padding:21px;
   height:59px;
   width:100px;
   background-color:Chartreuse;
   font:15px/43px Open Sans;
   color:yellow;
   position:relative;
}

div:hover {
   box-shadow:0 0 8px blue;
}
</style> 
 </head> 
 <body> 
  <div style="z-index: 3">
    Lor 
  </div> 
  <div style="z-index: 2">
    Lor 
  </div> 
  <div style="z-index: 1">
    Lor 
  </div>  
 </body>
</html>

Related Tutorials