<div>
<img src="Logo.jpg" alt="Logo" />
</div>
The answer was to set
img { display:block; }
or
Another alternative as another poster has pointed out would be to set line-height to 0 on the parent element.
<img src="Logo.jpg" alt="Logo" />
</div>
The answer was to set
img { display:block; }
or
img { vertical-align:bottom; }
Since images are inline and text is inline, user agents leave some space for descender characters ( y, q, g ). To un-do this effect for images, you can specify either of the styles above, though you might want to make the rules more specific so you don't target an image you don't want this to apply on.
No comments:
Post a Comment