1
I implemented a CSS on my system where I hover over the menu and display the submenus.
This is the CSS to hover over the menus
ul.nav li.dropdown:hover ul.dropdown-menu
{
display: block;
}
only that is the following, when I move the mouse over these menus I would like the color to change as if it were the click as shown in the photos below:
with the background-color submenu that changes color
– Leonardo Macedo
@Leonardomacedo I forgot to take the end of the selector, try this way
– Jéf Bueno
removing the ul.dropdown-menu the menu is the right color but the submenu does not appear
– Leonardo Macedo
No, @Leonardomacedo You have to keep both CSS.
– Jéf Bueno
It worked! Thank you very much! in 5 minutes I put as positive here!
– Leonardo Macedo
I’ve already put as positive more as it’s related to the question I wanted to know one more thing. I found something here too, I don’t know if this can be done by css too, when I click on the menu and pass the mouse on the other, the menu I clicked does not disappear, and opens what I passed the mouse by css I can fix it ?
– Leonardo Macedo
You get it, but although it has to do with the current question, I think it’s something else. It would be better to open a new question, don’t you think? Besides, a more detailed example of the menu will be needed...
– Jéf Bueno
beauty I’ll open here
– Leonardo Macedo
created https://answall.com/questions/211448/passar-mouse-no-menu-e-displar-submenus
– Leonardo Macedo