/ Published in: CSS
Use Z-Index to make navigation layer ABOVE other elements.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
ul.menu, ul.menu li { float: left; } ul.menu li { position: relative; margin: 0 15px; list-style: none; } .sub-menu { position: absolute; float: none; width: 100px; padding: 0; left: 0; } .sub-menu li { display:none; margin: 0; padding: 0; } ul.menu li:hover li { float: none; display:block; clear: both; }
URL: http://www.amberweinberg.com/easy-wordpress-dropdown-menus/