HTML CSS examples for CSS Widget:Menu Dropdown
HTML Dropdown menu without background
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #navbar {<!-- w w w. j a v a 2 s . c o m--> position:absolute; top:0; right:0; margin:0; padding:0; } #navbar li { list-style:none; float:left; } #navbar li a { display:block; padding:4px 9px; text-transform:uppercase; text-decoration:none; color:Chartreuse; font-weight:bold; font-size:26px; } #navbar li a:hover { color:yellow; } #navbar li ul { display:none; } #navbar li:hover ul, #navbar li.hover ul { position:absolute; display:inline; left:199px; width:51%; margin:0; padding:0; } </style> </head> <body> <ul id="navbar"> <li> <a href="#">Lore</a> </li> <li> <a href="#">Lorem</a> </li> <li> <a href="#">Lorem ips</a> <ul> <li> <a href="#">Lorem ips</a> </li> <li> <a href="#">Lorem ipsum do</a> </li> <li> <a href="#">Lorem ipsum</a> </li> </ul> </li> <li> <a href="#">Lorem i</a> </li> </ul> </body> </html>