Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox shows blue box around image link

I have an anchor tag around all of these images on my site. When you click it, it scrolls to the id "template".

<a class="hi" href="#template"><img src="images/01.png" /></a>

I have tried every trick in the book.

a img{border:none; outline: none;}

border=0 in the image tag itself.

No matter what I do there's always a blue border around the image once you click it. Click any of the circle images (towards the bottom) for reference. Remember, to view in Firefox.

http://stevendennett.com/newsite/

Thanks!

like image 203
user2415116 Avatar asked Feb 15 '23 02:02

user2415116


1 Answers

The dotted border around the image is the Outline of the <a> tag. So that, when you remove the border and outline in img it will not be the solution.

The solution is

We don't need to put to much code. Try here:

a { /* Remove all the outline border all in our document. */
   outline: none;
}
like image 72
KoemsieLy Avatar answered Mar 03 '23 15:03

KoemsieLy