I have a problem with the img border. I am using the following code for all my images, but the border is not going away. Can someone tell me the correct way to remove the img border?
<div class="mosaic-overlay">
<img class="cover1"></div>
.cover1 {width:300px;height:185px;
float:left;background: url('/img/cover.jpg') 0px 0px;
border:0;}
Many thanks.
Erik
It’s the default “special” border that appears in some browsers when an
imgelement has nosrcattribute, or asrcattribute pointing to an image that does not exist.For example, look at this in IE9: http://jsfiddle.net/SdbNE/
A common workaround is to set the
srcto ablank.giffile:Or, just use a
divinstead?