I recently updated my website to include an image wrapped in an anchor tag, which looks like this: .
However, I encountered an issue where the image had a border only in Firefox, with no border appearing in Chrome. To get rid of the border, I added the following CSS styles for both the a
and img
tags:
text-decoration:none;
border-style:none;
border:none;
outline:none;
box-shadow: 0;
-moz-box-shadow:0;
background:none;
color:white;
The image is a small gray icon on a white background, and after double-checking it in GIMP, there should be no border around the image. So, why is it showing up only in Firefox? What did I overlook? And how can I remove it?
Firefox version: 17.0.1