When I turn an image (<img>
) into a hyperlink (by wrapping it in <a>
), Firefox adds a black border around the image. Safari does not display the same border.
What CSS declaration would be best to eliminate the border?
img {
border: 0
}
Or old-fashioned:
<img border="0" src="..." />
^^^^^^^^^^
Just add:
border: 0;
or:
a img {
border: 0;
}
to remove border from all image links.
That should do the trick.
in the code use border=0. so for example:
<img href="mypic.gif" border="0" />
within css
border : 0;
under whatever class your image is.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With