Finkelson Finkelson - 21 days ago 5x
CSS Question

How to restore color in css after mouse leave?

When I click on the button in my header it changes the color to #699fca (as expected). But when mouse leaves the button the color changes to gray. I want to get it 699fca (not gray).

Here is my example:


You need to add css for the visited state of the link, which is what is applied after it has been clicked. Something like this:

.navbar-nav > li > a:visited {
    background-color: #699fca;