Oct 11, 2013

CSS(a/img) - Remove extra space on anchor with image tag

Just want to share the work around.

Normally around will goes like this.
<a href="#"><img  src="/image.jpg" /></a>

Update code to remove the extra space. Just add the display:block in the image tag.
<a href="#"><img style="display:block" src="/image.jpg" /></a>

Post a Comment