Drop up menu, make it show upwards - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

Drop up menu, make it show upwards

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   ww  w  .j a  v a 2s  . co m-->
   width:981px;
   height:39px;
   margin-top:100px;
}

#navigation li {
   float:left;
   position:relative;
   width:100px;
   border:2px solid Chartreuse;
}

#navigation li:hover {
   background:silver;
}

#navigation li a {
   text-transform:uppercase;
   color:yellow;
   padding:14px 34px;
   line-height:39px;
   font-size:12px;
}

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

#navigation li ul {
   position:absolute;
   display:none;
   z-index:1001;
   min-width:100%;
   left:-2px;
}

#navigation li:hover ul {
   bottom:21px;
   display:block;
   background:blue;
}

#navigation li ul li {
   background:none;
   width:100%;
}

#navigation li ul li:hover {
   background:none;
   background-color:pink;
}

#navigation li ul li a {
   text-transform:uppercase;
   color:OrangeRed;
   padding:9px 11px;
   line-height:29px;
   width:100%;
}
</style> 
 </head> 
 <body> 
  <ul id="navigation"> 
   <li>L</li> 
   <li>Lor 
    <ul> 
     <li>Lor</li> 
     <li>Lor</li> 
     <li>Lor</li> 
    </ul> </li> 
   <li>L</li> 
   <li>L</li> 
  </ul>  
 </body>
</html>

Related Tutorials