Three level dropdown menu horizontal - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

Three level dropdown menu horizontal

Demo Code

ResultView the demo in separate window

<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
 <head> 
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <title>Lorem i</title> 
  <style>
* {<!--from  www . j  av  a2  s.  co  m-->
   margin:0;
   padding:0
}

#navbar {
   max-width:901px;
   width:100%;
   clear:both
}

#navbar>ul {
   border-top:2px dashed Chartreuse;
   border-bottom:2px dashed yellow;
   background:blue;
   width:100%;
   list-style:none;
   position:relative;
   float:left
}

#navbar ul a,#navbar ul ul a {
   display:block;
   color:pink;
   text-decoration:none;
   font-size:17px;
   padding:6px 11px
}

#navbar ul li {
   position:relative;
   float:left
}

#navbar ul li.current-menu-item {
   background:OrangeRed;
}

#navbar ul li:hover {
   background:grey;
}

#navbar ul ul {
   list-style:none;
   white-space:nowrap;
   min-width:100%;
   border:2px dashed BlueViolet;
   display:none;
   position:absolute;
   top:100%;
   left:0
}

#navbar ul ul li {
   float:none
}

#navbar ul ul ul {
   top:0;
   left:100%
}

#navbar ul li:hover>ul {
   display:block
}
</style> 
 </head> 
 <body> 
  <div id="navbar"> 
   <ul> 
    <li class="current-menu-item"> <a href="#">Lorem </a> </li> 
    <li> <a href="#" rel="nofollow">Lorem </a> 
     <ul> 
      <li> <a href="#" rel="nofollow">Lorem ipsu</a> </li> 
      <li> <a href="#" rel="nofollow">Lorem ipsum dolor sit amet, consecte</a> 
       <ul> 
        <li> <a href="#" rel="nofollow">Lorem ipsum</a> </li> 
        <li> <a href="#" rel="nofollow">Lorem ipsum</a> </li> 
       </ul> </li> 
     </ul> </li> 
    <li> <a href="#" rel="nofollow">Lorem </a> 
     <ul> 
      <li> <a href="#" rel="nofollow">Lorem ipsu</a> </li> 
      <li> <a href="#" rel="nofollow">Lorem ipsu</a> </li> 
     </ul> </li> 
    <li class="last-menu-item"> <a href="#" rel="nofollow">Lorem </a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials