HTMl CSS Dropdown Nav - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

HTMl CSS Dropdown Nav

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  .  j  a v a2s .  c o m-->
   color:Chartreuse;
}

ul {
   padding:0;
}

#menu li {
   background:yellow;
   float:left;
   list-style:none;
   padding:6px;
   position:relative;
}

#menu li ul {
   display:none;
   position:absolute;
   top:26px;
}

#menu li:hover ul {
   display:block;
}
</style> 
 </head> 
 <body> 
  <div id="menubar"> 
   <div id="welcome"> 
    <h1> <a href="#">Lorem ipsum d<span>Lorem i</span> </a> </h1> 
   </div> 
   <!--close welcome--> 
   <div id="menu_items"> 
    <ul id="menu"> 
     <li class="current"> <a href="index.html">Lore</a> </li> 
     <li> <a href="index.html">Lorem ips</a> 
      <ul> 
       <li> <a href="#">Lorem ip</a> </li> 
      </ul> </li> 
     <li> <a href="index.html">Lorem ipsum </a> </li> 
     <li> <a href="index.html">Lorem i</a> </li> 
     <li> <a href="index.html">Lorem ips</a> </li> 
     <li> <a href="index.html">Lorem ipsu</a> </li> 
    </ul> 
   </div> 
   <!--close menu--> 
  </div> 
  <!--close menubar-->  
 </body>
</html>

Related Tutorials