CSS dropdown menu with large submenu size - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

CSS dropdown menu with large submenu size

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">
html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary,time, mark, audio, video {
   margin:0;
   border:0;
   font-size:100%;
   font:inherit;
   font-family:Corbel, Arial;
   vertical-align:baseline;<!--from w w  w  . ja va2  s.  co m-->
   padding:0px;
   text-decoration:none;
}

a:link, a:visited, a:hover {
   color:Chartreuse;
   text-decoration:none;
}

ul, ol {
   list-style:none;
}

#nav {
   position:fixed;
   top:51px;
   left:51px
}

#nav ul li {
   position:relative;
   float:left;
   margin-right:5px;
}

#nav ul a {
   display:block;
   padding:0 21px;
   line-height:26px;
   background:yellow;
   text-align:center;
   border:2px solid blue;
   border-radius:0px 0px 0px 0px;
   white-space:nowrap;
}

#nav .b a {
   margin-top:4px;
}

#nav .c a {
   margin-left:11px;
}

#nav ul li:hover>a {
   background:pink;
   color:OrangeRed;
}

#nav ul li:hover a:hover {
   background:grey;
   color:BlueViolet;
}

#nav ul ul.b {
   display:none;
   position:absolute;
   top:100%;
   left:0;
}

#nav ul ul.c {
   display:none;
   position:absolute;
   top:0px;
   left:100%;
}

#nav ul li:hover .b {
   display:block;
}

#nav ul .b li:hover .c {
   display:block;
}
</style> 
 </head> 
 <body> 
  <div id="nav"> 
   <ul class="a"> 
    <li> <a href="#">Lorem </a> </li> 
    <li> <a href="#">Lorem ipsu</a> 
     <ul class="b"> 
      <li> <a href="#">Lorem ip</a> </li> 
      <li> <a href="#">Lorem ip</a> 
       <ul class="c"> 
        <li> <a href="#">Lorem ipsu</a> </li> 
        <li> <a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper mole</a> </li> 
        <li> <a href="#">Lorem ipsu</a> </li> 
       </ul> </li> 
      <li> <a href="#">Lorem ip</a> </li> 
      <li> <a href="#">Lorem ip</a> </li> 
      <li> <a href="#">Lorem ip</a> 
       <ul class="c"> 
        <li> <a href="#">Lorem ipsu</a> </li> 
        <li> <a href="#">Lorem ipsu</a> </li> 
        <li> <a href="#">Lorem ipsu</a> </li> 
       </ul> </li> 
     </ul> </li> 
    <li> <a href="#">Lorem</a> 
     <ul class="b"> 
      <li> <a href="#">Lorem ip</a> </li> 
      <li> <a href="#">Lorem ip</a> </li> 
      <li> <a href="#">Lorem ip</a> </li> 
      <li> <a href="#">Lorem ip</a> </li> 
      <li> <a href="#">Lorem ip</a> </li> 
     </ul> </li> 
    <li> <a href="#">Lorem </a> </li> 
    <li> <a href="#">Lorem </a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials