How to silently hide "Image not found" icon when src source image is not found

Viewed 93610

Do you know how to hide the classic “Image not found” icon from a rendered HTML page when an image file is not found?

Any working method using JavaScript/jQuery/CSS?

9 Answers

Just simply add blank alt attribute on your <img>

Something like this: <img src="..." alt="">

Just Use simple css

.AdminImageHolder {
display: inline-block;
min-width: 100px;
max-width: 100px;
min-height: 100px;
max-height: 100px;
background: url(img/100x100.png) no-repeat;
border: 1px solid #ccc;
}
Related