Why is there some strange spacing with <img/>
tags in a paragraph <p>
?
I noticed this from using firebug where the img is maybe 4-5 pixels above where the text should be inline.
Example: http://jsbin.com/epavij
Here the <a>
tag is surrounding the <img/>
and the <a>
is shown to take up a smaller space down a few pixels.
Obviously display:block
fixes this problem, but what is causing it?
For argument's sake I plan to have the image inline with some text; though I have tested, and adding text does not fix the problem.