How do I remove outline on link click?

后端 未结 6 720
青春惊慌失措
青春惊慌失措 2021-02-06 20:47

When I click a link on my website it is creating an outline around the link like so

I\'ve tried adding:

a.image-link:focus { outline: 0; }
         


        
6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 21:28

    Fixed:

    Found out in my CSS that there was code already being generated to create an outline on a:active. This was overriding my code and removing it fixed the problem.

提交回复
热议问题