Jump to content

Recommended Posts

So heres what i have, basically (not exactly, but don't worry about that):

 

<div style="float:left; height:25px;">

<p>Words</p>

</div><img src="img.gif" border="0" height="25" />

 

<div>

<p>Words</p>

</div>

 

In addition to this, there are some classes that tell things to snug up (margins:0 and padding:0 mostly).

 

Now, in Mozilla, it does exactly what i want. The bottom of the first div+image is flush with the top of the second div. But, in IE, there is a gap. If i remove the image, it is flush in both. So this makes me think that explorer has a default something or other for images that creates this space. I tried setting the image's margin and padding to zero, but no luck.

 

I did manage to fix it, but it broke something i need somewhere else, so i need another solution. Just FYI, the fix was floating the image right.

 

Is there anything anyone can think of?

Link to comment
https://forums.phpfreaks.com/topic/102451-image-creating-whitespace-in-ie/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.