HTML CSS examples for CSS Widget:Menu Dropdown
Hover to show sub section in css drop-down menu
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #DealerNav {<!-- ww w . j a v a 2s. c o m--> margin:0; padding:0; position:relative; font-size:91%; } #DealerNav li { list-style-type:none; position:relative; } #DealerNav li ul { display:none; position:absolute; top:-3px; left:14em; margin-left:3px; } #DealerNav>li>ul { left:0; top:100%; margin-left:0; } #DealerNav a.first { width:100%; font-size:100%; font-weight:bold; color:Chartreuse; background-color:yellow; margin-left:-.6em; } #DealerNav a { display:block; width:13em; padding:.6em; margin:3px 0; background-color:blue; color:pink; } #DealerNav a:hover { color:OrangeRed; } #DealerNav a:hover.first { color:grey; } #DealerNav li:hover>ul { display:block; } </style> </head> <body> <ul id="DealerNav"> <li> <a href="#" class="first">Lorem ipsum dolor sit </a> <ul> <li> <a href="#">Lorem ipsum dolor s</a> <ul> <li> <a href="" target="_blank">Lorem ipsum dol</a> </li> <li> <a href="" target="_blank">Lorem ipsum do</a> </li> <li> <a href="" target="_blank">Lorem ipsum dolo</a> </li> <li> <a href="" target="_blank">Lorem ipsum dolo</a> </li> </ul> </li> <li> <a href="#">Lorem ipsum do<br>Lorem ipsum dolor sit amet, </a> <ul> <li> <a href="" target="_blank">Lorem ipsum dolor </a> </li> </ul> </li> <li> <a href="#">Lorem ipsum dolor si</a> <ul> <li> <a href="" target="_blank">Lorem ipsum dol</a> </li> <li> <a href="" target="_blank">Lorem ipsum do</a> </li> <li> <a href="" target="_blank">Lorem ipsum dolo</a> </li> </ul> </li> </ul> </li> </ul> </body> </html>