I'm making a button in Bootstrap and it looks fine. However, whenever I click on the button, at least in chrome, it displays a blue halo glow around the edges of the button until I click some other part of the screen. Is there a way to eliminate this blue glow?
I have seen this question asked here : https://stackoverflow.com/questions/22999328/how-to-remove-the-border-from-search-box-after-clicking
but the only answer was a comment to add .yourbox:focus { border: 0 !important; }
to the stylesheet. I did that and added the class "yourbox" to the button, but it didn't change anything. This is the current code for my button:
<button type="button" class="btn btn-info btn-block">
Button
</button>
Removing the outline on focus
should help you out, tested.
.btn:focus {
outline: 0;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With