+ 5

How can i remove the border that apears when i select my button?

i can add a border to my button also i can disable the border so i dont have one, but how can i remove the border that apears when i click on my button? and no it doesnt work with button:hover { border:none } please help because this ruins my design :( https://code.sololearn.com/WF3Q16a04ESU/?ref=app

9th Jul 2017, 5:30 PM
TrueJu
TrueJu - avatar
4 Answers
+ 18
That outline is somewhat annoying for a good-looking website. This is one simple way to remove the button border with respect to your code : button { outline: none; }
9th Jul 2017, 5:45 PM
Dev
Dev - avatar
+ 12
http://outlinenone.com/ Personally i remove the outline through the ":focus" selector, but for better learning you should know that remove it damages the accessibility for those who have visual problems.
9th Jul 2017, 6:06 PM
Maz
Maz - avatar
+ 11
Julien, i just gave you an article to deepen your knowledge, solution to your question is provided by Dayve. ;)
9th Jul 2017, 6:11 PM
Maz
Maz - avatar
+ 3
Thank you guys it helped me :D normally I mark the best answer but here are two of them so i dont to be fair
9th Jul 2017, 6:08 PM
TrueJu
TrueJu - avatar