How To Get Rid of The Black Outline After Clicking On a Button


If you see a black outline around a button after clicking on it, it's because of some pre-written CSS.

To clear the black outline from showing up, just paste the following code into your site's stylesheet:


/* Disable the black outline after clicking on a button */
[type=button]:focus, [type=submit]:focus, button:focus {
    outline: none !important;
}

Did you find this article useful?