Change the hover of the bootstrap btn class

0

Hello.

I have a menu with bootstrap, however a certain item is with the btn-success class. The problem is when I hover over this item, the background turns white. How would I make the background to remain green?

<div class="navbar navbar-default navbar-static-top">
            <div class="container">
                <div class="navbar-collapse collapse ">
                    <ul class="nav navbar-nav">
                       ....
                       <li class="btn-success btn-xs">Acessar</li>
                       ....
                    </ul>
                </div> 
            </div>
</div>
    
asked by anonymous 11.07.2017 / 13:55

1 answer

1

Have you tried to use the !important attribute?

li.btn-success:hover{
   background-color: green !important;
} 

With the attribute in question, the background-color defined by you will be prioritized.

    
11.07.2017 / 14:09