|
-
May 1st, 2012, 07:06 PM
#4
Re: [RESOLVED] Image with absolute positioning makes div 2px higher
As to what the problem actually is, the default display type on images is "inline," which automatically creates space beneath the baseline of the element for descending characters in text (like p,j,g,y) that are on the same line. This space is unnecessary in cases where you've got just an image; so "block" gets rid of it.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|