Wednesday, 18 September 2013

hide img tag if src is empty but without javascript/jQuery or css3

hide img tag if src is empty but without javascript/jQuery or css3

, am designing templates in Channel Advisor for eBay store and it doesn't
allow javascript/jQuery. Also, the CSS3 doesn't work in various IE
versions specially the img[src*=] implementation is broken.
When I use template tags in img like:
<img src="{{THUMB(ITEMIMAGEURL1)}}">
where {{THUMB(ITEMIMAGEURL1)}} is the image path, if the image is missing
and the template is posted to eBay then the end result would be like this:
<img src="">
and this shows a broken image.
Is there a way to hide <img src=""> with HTML or CSS that works in IE7+

No comments:

Post a Comment