S
S
Sergey Shkurikhin2020-10-06 17:49:41
WordPress
Sergey Shkurikhin, 2020-10-06 17:49:41

How to remove outline from all site elements?

Almost all wordpress templates, after installation, when clicking on elements, a dotted line is formed around the outline element.
I'm trying to remove it through css like this, but it still doesn't work everywhere...

a {
  outline: none;
  outline: none !important;
}


Tell me how to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladik Bubin, 2020-10-06
@shkyrikhin99

First, for the property to work correctly, you must have the CSS files properly included, in the correct hierarchy. That is, your key at the very end, the list of all connected. And removing the outline is not recommended, because you are depriving people with disabilities from using your site. Therefore, it is better not to remove it, but to make it transparent or not noticeable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question