I implement a bootstrap responsive rich menu and it works fine.
It works on Click event ,my question is : How can I change it to Hover event ?
all bootstrap menus have this issue . bootstrap doesn't have any support for this ?
this is the menu I use :
http://geedmo.github.io/yamm/
my problem solved with :
<style>
li.dropdown:hover .dropdown-menu {
display: block;
}
li.dropdown:hover .dropdown-toggle {
color: #555;
background-color: #e5e5e5;
}
</style>
but a new problem happened , the submenus showed in the end of the menus when I shrink the browser , and it's not appropriate :/
Add this style to your page.
<style>
li.dropdown:hover .dropdown-menu{display:block}
li.dropdown:hover .dropdown-toggle{color:#555; background-color:#e5e5e5}
</style>
First one will enable dropdown on mouse hover and second one will change the menu header color (choose the appropriate color for your page).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With