When I click a link on my website it is creating an outline around the link like so
I\'ve tried adding:
a.image-link:focus { outline: 0; }
Worked for me
I battled this for a while and this worked for me on WordPress 5.5.3 with StoreFront theme:
a:hover,
a:active {
outline: none;
box-shadow: none !important;
}
Simply add outline:none; text-decoration:none;
You can just use this:
a:active, a:focus {
outline: 0;
border: none;
-moz-outline-style: none;
}
Fixed:
Found out in my CSS that there was code already being generated to create an outline on a:active
. This was overriding my code and removing it fixed the problem.
Just add a:visited { outline: none; }
in your style file.
If at-least one of the solutions above doesn't work for anyone. Give this a try as well
a:active, a:focus {
box-shadow: none;
}