Hover to show background for menu bar - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Hover

Description

Hover to show background for menu bar

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">
ol {<!--from  www.ja v a2  s . c  o  m-->
   list-style-type:none;
   margin:0;
   padding:0;
   background-color:Chartreuse;
}

li {
   float:left
}

a {
   display:inline-block;
   color:yellow;
   text-align:center;
   padding:15px 17px;
   text-decoration:none;
}

li:hover {
   background-color:blue;
}
</style> 
 </head> 
 <body> 
  <ol> 
   <li> <a class="active" href="#home">Lore</a> </li> 
   <li> <a href="#iPhone">Lorem </a> </li> 
   <li> <a href="#iPad">Lore</a> </li> 
   <div style="clear:both;"></div> 
  </ol>  
 </body>
</html>

Related Tutorials