Display ul as dropdown as hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover on list

Description

Display ul as dropdown as hover

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 li {
   display:none;
}

ul:hover li {
   display:block;
}
</style> <!--   w w w . j av a2 s .c  om-->
 </head> 
 <body> 
  <nav> 
   <ul>
     Lorem ipsum 
    <li> <a href="#">Lore</a> </li> 
    <li> <a href="#">Lorem</a> </li> 
    <li> <a href="#">Lorem ip</a> </li> 
    <li> <a href="#">Lorem i</a> </li> 
    <li class="subscribe"> <a href="#">Lorem ipsum dolor </a> </li> 
   </ul> 
  </nav>  
 </body>
</html>

Related Tutorials