When you go to the anchor link. The element selected by the anchor is highlighted with a yellow frame! - Tell me how to remove it.
3 answers
This is where outline
used. It is necessary to put the outline: none
. Perhaps on a:active
or somehow lights up - you have to look. And you can leave it as it is, because the user is more comfortable - he sees where the transition is going.
|
Something of the form:
elem .selected{ border: none; }
Identifier elem find yourself from the page code.
|
The fact is that the outline can be used not only on a
and not only one state. In addition, an indent may also be created, which in the future will prevent the creation of the correct stroke. To solve all these problems, I advise you to use the following structure:
// Remove outline on the forms and links :active, :hover, :focus { outline: 0; outline-offset: 0; }
|