2

Using Bootstrap 3 at This Demo I tried to remove Buttons Blue Highlight/ Glow on click by using the following CSS roles:

.btn:focus { outline: none;}
.btn:hover { outline: none;}
.btn.active{ outline: none;}
.btn{outline: none;}

But I am still getting a very fast Highlight ONLY at Click time on the button and it disappears very fast after the class is active or have focus. Can you please let me know which portion of CSS is doing this and how I can stop it? Thanks

user3668817
  • 63
  • 2
  • 8

1 Answers1

4

Use !important flag because the outline property is changed by other CSS styles probably:

You only need:

.btn {   
    outline: none !important;
}

Read more about !important flag.

JSFIDDLE

Community
  • 1
  • 1
Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474