Elegant Dropdown sub menu - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

Elegant Dropdown sub menu

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">
#navigation {<!--from  w ww . j  a  va 2 s  .  c  o  m-->
   float:left;
   width:426px;
   margin:0 0 0 46px;
   -webkit-transition:all 0s ease-out;
   -moz-transition:all 0s ease-out;
   -o-transition:all 0s ease-out;
   transition:all 0s ease-out;
}

#navigation ul {
   float:left;
   margin:0;
   padding:0;
   list-style:none;
   -webkit-transition:all 0s ease-out;
   -moz-transition:all 0s ease-out;
   -o-transition:all 0s ease-out;
   transition:all 0s ease-out;
}

#navigation ul li {
   float:left;
   position:relative;
   height:81px;
   margin:0 11px 0 11px;
   padding:0;
   font-size:13px;
   text-transform:uppercase;
   color:Chartreuse;
   line-height:81px;
   font-family:'proxima-nova';
   letter-spacing:0.34em;
   -webkit-transition:all 0s ease-out;
   -moz-transition:all 0s ease-out;
   -o-transition:all 0s ease-out;
   transition:all 0s ease-out;
   font-weight:401;
}

#navigation ul li a {
   color:yellow;
   text-decoration:none;
   -webkit-transition:all 0s ease-out;
   -moz-transition:all 0s ease-out;
   -o-transition:all 0s ease-out;
   transition:all 0s ease-out;
}

#navigation ul li a:hover {
   color:blue;
   text-decoration:none;
}

#navigation ul li:hover ul {
   display:block;
}

#navigation ul li ul {
   display:none;
   float:auto;
   position:absolute;
   left:51%;
   width:191px;
   margin-left:-96px;
   z-index:100000;
   -webkit-box-shadow:0px 6px 11px 2px pink;
   box-shadow:0px 6px 11px 2px OrangeRed;
}

#navigation ul li ul li {
   float:left;
   width:inherit;
   background-color:grey;
   text-align:center;
   border-bottom:2px solid BlueViolet;
   margin:0;
   height:auto!important;
   line-height:2.7!important;
}

#navigation ul li ul li a {
   display:block;
   padding:11px 0;
}

#navigation ul li ul li a:hover {
   color:Chartreuse;
   background-color:yellow;
}
</style> 
 </head> 
 <body> 
  <div id="navigation"> 
   <ul id="menu-side" class="menu"> 
    <li id="menu-item-96" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-96"> <a href="#">Lorem ipsu</a> 
     <ul class="sub-menu"> 
      <li id="menu-item-101" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-101"> <a href="#">Lorem </a> </li> 
      <li id="menu-item-102" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-102"> <a href="#">Lorem </a> </li> 
     </ul> </li> 
    <li id="menu-item-97" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-97"> <a href="#">Lorem i</a> </li> 
    <li id="menu-item-98" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-98"> <a href="#">Lore</a> </li> 
    <li id="menu-item-99" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-99"> <a href="#">Lorem</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials