So, I have a navigation bar using the standard classes and Bootstrap 3 structure, I recently wanted to see if the drop-down menus can be opened on hover.
I searched and found this snippet:
.dropdown:hover .dropdown-menu{
display: block;
}
A menu will open with a hang, which is fine (without switching .dropdown-toggle
My problem is that mine .dropdown-togglehas a state focusthat occurs only when focus is assigned to an element, so when I am in and a menu opens, my freeze state is never applied, since I no longer need to click on the top menu item.
So the question is: is there a way to force a state :focuswhen active :hover?
I tried to do this:
.dropdown:hover #home .dropdown-toggle:focus{
background: #00aaff;
border: #00aaff 1px solid;
}
, , , , , :focus :hover, JavaScript?