How to remove Firefox's dotted outline on BUTTONS as well as links?

前端 未结 25 1473
耶瑟儿~
耶瑟儿~ 2020-11-22 14:23

I can make Firefox not display the ugly dotted focus outlines on links with this:

a:focus { 
    outline: none         


        
25条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 15:18

    The below worked for me in case of LINKS, thought of sharing - in case someone is interested.

    a, a:visited, a:focus, a:active, a:hover{
        outline:0 none !important;
    }
    

    Cheers!

提交回复
热议问题