How to change the behavior of a menu item as "amid changing hover" with Twitter Bootstrap?

As you can see by default on twitter bootstrap navbar, only the active background of a menu item is different. I want, when I am in the menu item, I want the background to be changed to a different color. On the bottom line, I should act as active when I find the menu item. How can i do this?

+3
source share
4 answers

Everyone here is wrong, after some testing you will find this CSS to change the menu palette.

.dropdown-menu li a:hover {background-color:red;}

Enjoy

+3
source

You need to add inline style or another identifier to your personal page . , JQuery. .

0

css:

.navbar .nav > a:hover {background-color:#f60;}

, , , .

0
source

Check out the answer from @ martincho-, this worked for me when changing the blue hover color:

Do not change bootstrap.css. Create another file csswhere you can override this. Anyway, line 4572:

.dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a

Set background-imagenone background-colorto any color you want.

0
source

All Articles