Three Level dropdown menu - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

Three Level dropdown 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">
#nav {<!--  w  w  w .ja  v  a  2s .  co m-->
   background:Chartreuse;
   width:100%;
   margin-top:-6px;
}

#nav ul {
   list-style:none;
   margin:0;
   padding:0;
   height:41px;
}

#nav ul li {
   position:relative;
   border-top:2px solid yellow;
   float:left;
}

#nav a {
   color:blue;
   padding:13px 0px;
   display:block;
   text-decoration:none;
   transition:padding 2s, background 2s;
   -moz-transition:padding 2s, background 2s;
   -webkit-transition:padding 2s, background 2s;
   -o-transition:padding 2s, background 2s;
   font-family:tahoma;
   font-size:14px;
   text-transform:uppercase;
   padding-left:21px;
}

#nav a:hover {
   padding-left:36px;
   background:RGBA(255, 255, 255, 0.6);
   color:pink;
}

#nav ul li:hover>ul {
   display:block;
}

#nav ul ul {
   position:absolute;
   left:0px;
   top:41px;
   border-top:2px solid OrangeRed;
   display:none;
   z-index:2;
}

#nav ul ul li {
   width:151px;
   background:grey;
   border:2px solid BlueViolet;
   border-top:0;
}

#nav ul ul li a {
   color:Chartreuse;
   font-size:13px;
   text-transform:none;
}

#nav ul ul li a:hover {
   color:yellow;
}

#nav ul ul ul {
   position:absolute;
   left:151px;
   top:0px;
   border-top:2px solid blue;
   display:none;
   z-index:2;
}

#nav ul ul ul li {
   width:151px;
   background:pink;
   border:2px solid OrangeRed;
   border-top:0;
}

#nav ul ul ul li a {
   color:grey;
   font-size:13px;
   text-transform:none;
}

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

#nav ul ul li:hover ul {
   display:block;
}
</style> 
 </head> 
 <body> 
  <nav id="nav"> 
   <ul> 
    <li> <a href="#">Lor</a> 
     <ul> 
      <li> <a href="#">Lorem</a> 
       <ul> 
        <li> <a href="#">Lorem i</a> </li> 
        <li> <a href="#">Lorem i</a> </li> 
       </ul> </li> 
      <li> <a href="#">Lorem</a> </li> 
      <li> <a href="#">Lorem</a> </li> 
     </ul> </li> 
   </ul> 
  </nav>  
 </body>
</html>

Related Tutorials