HTML CSS examples for CSS Widget:Menu Dropdown
Dropdown Menu with Submenu CSS HTML
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #wrapper {<!--from ww w .j av a2s . c o m--> width:961px; margin:2px auto; text-align:left; } #nav ul { list-style-type:none; padding:0; margin:0; } #nav ul li { display:inline-block; } #nav ul li:hover { background-color:Chartreuse; } #nav ul li a,visited { display:block; padding:16px; text-decoration:none; } #nav ul li:hover>ul { display:block; } #nav ul ul { display:none; position:absolute; background-color:yellow; min-width:201px; } #nav ul ul li { display:block; position:relative; } #nav ul ul li:hover { background-color:blue; } #nav ul ul li"hover>ul { display:block; } #nav ul ul ul { margin:-53px 0 0 201px; background-color:pink; } a { text-decoration:underline; font-family:Tahoma, Arial; font-size:19px; font-style:normal; font-weight:normal; font-variant:normal; } a:hover { text-decoration:none; font-family:Tahoma, Arial; font-size:19px; font-style:normal; font-weight:normal; font-variant:normal; } a.white-link-underline { text-decoration:underline; } a.b1 { font:15px tahoma, Arial; text-decoration:none; padding:16px; margin:0px; } li.sub ul { display:none; position:absolute; left:100%; top:0; } li.sub:hover ul { display:block; } </style> </head> <body> <div id="wrapper"> <div id="nav"> <ul> <li> <a href="index.html">Lore</a> </li> <li> <a href="events.html">Lorem </a> </li> <li> <a href="#">Lorem ipsu</a> <ul> <li class="sub"> <a href="#">Lore</a> <ul> <li> <a href="PDFs/Newsletter Fall 2015.pdf">Lorem ips</a> </li> <li> <a href="PDFs/Newsletter Spring 2015.pdf">Lorem ipsum</a> </li> </ul> </li> <li class="sub"> <a href="#">Lore</a> <ul> <li> <a href="#">Lorem ips</a> </li> <li> <a href="#">Lorem ipsum</a> </li> </ul> </li> </ul> </li> </ul> </div> <!-- Nav end --> </div> <!-- wrapper end --> </body> </html>