I have the following CSS code for links:
a {
text-decoration: none;
color: #248AC9;
}
a:hover {
color: #8DCFF7;
}
The problem is that in Internet Explorer, images have a strange border with the same color as 'color'. How can I fix this, and draw images correctly. The HTML code is simple:
<a href="calculator-operators.htm"><img src="img/link.png" /></a>
So, how can I fix this problem?
Just specify no border for the images:
a > img{
border: 0;
}
Use
img {
border: 0;
}
I would consider using a reset stylesheet, or a normalising stylesheet to provide consistency in styling across all browsers. This fix is part of those stylesheets.
Its an old post i see, but i thought, why not. There is an other solution by using border:none;
:
a img {
border:none;
}
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