Reputation:
If the image is not available in the folder then browser only show img tag with its given height and width but firefox creates problem in this case..
Problem : I am using img attribute to show an image. In firefox it looks like i am using style="width: 180px; height: 185px;"
but in chrome it looks like
Upvotes: 1
Views: 286
Reputation: 534
Try this:
@-moz-document url-prefix(http), url-prefix(file) {
img:-moz-broken{
-moz-force-broken-image-icon:1;
width:180px;
height:185px;
border:1px solid #000;
}
}
EDIT: The solution posted by Gaurav is better, use it instead.
-moz-force-broken-image-icon
The use of this property is not recommended. A proper alt attribute should be used instead.
Upvotes: 0