Css classes menu pop up - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu

Description

Css classes menu pop up

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">
ul {<!--   w w  w .  ja  v a2s  .c  o  m-->
   margin:0;
   padding:0
}

.horz>li {
   display:inline-block;
   position:relative;
   padding:0 21px;
}

.vert {
   margin-left:2rem;
}

.vert li {
   line-height:100%;
}

ul .vert {
   position:absolute;
   display:none;
   list-style:none;
   width:100%;
}

ul .vert li {
   padding:6px 0;
}

ul>li:hover>.vert {
   display:block;
}

a:hover {
   color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <ul class="horz"> 
   <li> <a href="#">Lorem </a> 
    <ul class="vert"> 
     <li> <a href="#">Lorem ipsum</a> </li> 
     <li> <a href="#">Lorem ipsum</a> </li> 
    </ul> </li> 
   <li> <a href="#">Lorem </a> 
    <ul class="vert"> 
     <li> <a href="#">Lorem ipsum</a> </li> 
     <li> <a href="#">Lorem ipsum</a> </li> 
    </ul> </li> 
   <li> <a href="#">Lorem </a> </li> 
   <li> <a href="#">Lorem </a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials