HTML CSS examples for CSS Widget:Menu Dropdown
Nav Menu Dropping Down on hover
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> a {<!-- w w w. ja va 2 s. co m--> color:Chartreuse; } nav { background:black; width:100%; } .link { position:relative; } .link:hover .subnav { display:block; } .subnav { display:none; position:absolute; background:blue; color:yellow; } </style> </head> <body> <nav> <ul> <li class="link"> <a href="#">Lorem ipsum d</a> <ul class="subnav"> <li>Lorem ip</li> <li>Lorem ip</li> <li>Lorem ip</li> </ul> </li> </ul> </nav> </body> </html>