CSS drop-down menu, three level - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

CSS drop-down menu, three level

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit a</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
@import url(https://www.java2s.com/style/demo/Google-Chrome.png);
.p-nav li {
   position:relative;
}

.p-nav ul ul {
   display:none;
   position:absolute;
   top:100%;
   width:351px;
}

.p-nav>ul>li {
   float:left;
}

.p-nav a {
   display:block;
   font:301 100%/71px"Lato", sans-serif;
   padding:0 31px;
}

.p-nav ul li:hover>ul {
   display:block;
}
</style> <!--   w w w. ja  v  a2s  . c  om-->
 </head> 
 <body> 
  <nav class="p-nav"> 
   <ul> 
    <li> <a href="#">Lorem</a> </li> 
    <li> <a href="#">Lorem ip</a> </li> 
    <li> <a href="#">Lorem ip</a> </li> 
    <li> <a href="#">Lore</a> 
     <ul> 
      <li> <a href="#">Lorem ipsum </a> </li> 
      <li> <a href="#">Lorem ips</a> 
       <ul> 
        <li> <a href="#">Lor</a> </li> 
        <li> <a href="#">Lorem ipsu</a> </li> 
        <li> <a href="#">Lorem ipsu</a> </li> 
       </ul> </li> 
     </ul> </li> 
    <li> <a href="#">Lorem i</a> </li> 
   </ul> 
  </nav>  
 </body>
</html>

Related Tutorials