Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Bootstrap 3 button onclick css style

when I click on a Bootstrap button, a csss is applied while the mouse button is clicked. This is also visible when the mouse button is hold pressed over a bootstrap button.

I need to change that style, but I can't find it using inspect element. How can I find what style is applied and how can I change it?

like image 419
Terix Avatar asked Apr 10 '14 11:04

Terix


2 Answers

I had this problem the other week. If you're using chrome, open inspect element, code highlight the button, right click, select Force Element State, select :focus. This will show you the CSS code that you need to alter.

like image 70
OliverB Avatar answered Oct 13 '22 00:10

OliverB


Having an issue with this myself until I applied the style to .btn-default:active:focus

like image 29
Johann Dyck Avatar answered Oct 12 '22 22:10

Johann Dyck