I was wondering on how to make a simple drop-down menu when my button is hovered.
My button:
<ul class="menu-links right" style="margin-left:-25px">
<li class="menu-black"><a href="javascript:void(0)" class="dropHover">?</a></li>
</ul>
Whenever the user hovers the “dropHover” I wish to have a new unordered list hover below. How is this possible?
Thanks.
You can make a simple dropdown/submenu with just plain css. The theory is that you hide your dropdown/submenu by adding
display:noneor pushing it far off the screen with aleftposition likeleft:-9999and then when you hover over your menu item you reset that position or display property to show your menu, like so:This is the construct of a basic css menu.
CSS
You can then add your dropdown/submenu as a child of your parent menu item.
HTML
Demo