Open menu when hovering - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Hover

Description

Open menu when hovering

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">
#left-navigation {
   width:21px;
   background-color:Chartreuse;
   overflow:hidden;
}

#left-navigation:hover {
   width:100px;
}

#left-navigation li {
   width:100px;
   visibility:hidden;
}

#left-navigation:hover li {
   visibility:visible;
}
</style> <!--   ww w.j a v a2  s  . co  m-->
 </head> 
 <body> 
  <ul id="left-navigation" class="menu"> 
   <li id="menu-item-6" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-6"> <a href="#">Lore</a> </li> 
   <li id="menu-item-1439" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1439"> <a href="#">Lorem ipsum</a> </li> 
   <li id="menu-item-62" class="menu-item menu-item-type-post_type_archive menu-item-object-portfolio current-menu-item menu-item-62"> <a href="#">Lorem ip</a> </li> 
   <li id="menu-item-1416" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1416"> <a href="#">Lorem</a> </li> 
   <li id="menu-item-1409" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1409"> <a href="#">Lorem ips</a> </li> 
   <li id="menu-item-80" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-80"> <a href="#">Lorem ipsu</a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials