HTML CSS examples for CSS Widget:Menu Dropdown
Css dropdown menu along with search box
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #menu {<!--from w ww . j a v a 2s . c o m--> margin-top:3px; font-size:0.9em; list-style:none; } #menu li { padding:2% 2.6% 2% 2.6%; text-align:center; vertical-align:middle; float:left; } #menu li a { text-align:center; vertical-align:middle; font-weight:bold; } .bordered { border-right:2px dotted Chartreuse; } #menu li ul { visibility:hidden; position:absolute; margin:2% 0 0 -3px; border-top:2px dotted yellow; } #menu li ul li { float:left; white-space:nowrap; } #menu li:hover ul, #menu li:active ul { visibility:visible; } </style> </head> <body> <ul id="menu"> <li class="bordered"> <a href="index.html">Lore</a> </li> <li class="bordered"> <a href="about.html">Lorem</a> </li> <li class="bordered"> <a href="research.html">Lorem ip</a> </li> <li class="bordered"> <a href="artists.html">Lorem i</a> <ul> <li class="bordered"> <a href="">Lorem ips</a> </li> <li class="bordered"> <a href="">Lorem ips</a> </li> </ul> </li> <li> <a href="municipalities.html">Lorem ipsum do</a> <ul> <li class="bordered"> <a href="">Lorem i</a> </li> <li class="bordered"> <a href="">Lore</a> </li> </ul> </li> <li> <form id="searchbox" action=" " method=" "> <input type="text" name="search" value=""> <input type="submit" value="Search"> </form> </li> </ul> </body> </html>