Hove to change background for menu - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu

Description

Hove to change background for menu

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>Lorem ipsum dolor sit</title> 
  <style>
#nav {<!--   ww w  .  j  av  a  2  s  .c  om-->
   border:2px solid Chartreuse;
   padding:6px;
   background-color:yellow;
}

#nav li {
   border-left:2px solid blue;
   padding:23px;
   display:inline;
}

#nav li:hover {
   background-color:pink;
}

.final_nav {
   border-right:2px solid OrangeRed;
}

#nav a {
   display:inline-block;
}

#nav a:hover {
   text-decoration:none;
}
</style> 
 </head> 
 <body translate="no"> 
  <div id="nav"> 
   <ul> 
    <li> <a href="">Lore</a> </li> 
    <li class="final_nav"> <a href="">Lor</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials