S
S
Seva2015-03-11 15:39:51
css
Seva, 2015-03-11 15:39:51

How to remove the border around a button in Chrome?

Actually, this is the frame that appears around the button when you click on it in chrome.
How to fight?
3c79bbfae671440c94edaaa95d56e31e.png
Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Mikhail Goryachkin, 2015-03-11
@Zewkin

button, 
button:active, 
button:focus {
    outline: none;
}

F
format_iai, 2017-08-12
@format_iai

button:focus {
outline: none !important
}
fails
*{
outline: none !important
}

A
Alexander Maksimov, 2020-04-18
@mbalex

button,
button:active,
button:focus {
outline: none !important;
}

V
Victoria Yasinyuk, 2017-08-03
@vita78ru

Searched the entire internet. None of the suggested solutions help. But as soon as I point out

button {
   position: absolute;
}

the frame magically disappears and everything falls into place.
An option for those who did not fit any of the proposed solutions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question