Nav Menu Dropping Down on hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

Nav Menu Dropping Down 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">
a {<!--  w w  w. ja va 2 s.  co m-->
   color:Chartreuse;
}

nav {
   background:black;
   width:100%;
}

.link {
   position:relative;
}

.link:hover .subnav {
   display:block;
}

.subnav {
   display:none;
   position:absolute;
   background:blue;
   color:yellow;
}
</style> 
 </head> 
 <body> 
  <nav> 
   <ul> 
    <li class="link"> <a href="#">Lorem ipsum d</a> 
     <ul class="subnav"> 
      <li>Lorem ip</li> 
      <li>Lorem ip</li> 
      <li>Lorem ip</li> 
     </ul> </li> 
   </ul> 
  </nav>  
 </body>
</html>

Related Tutorials