Forum Moderators: not2easy

Message Too Old, No Replies

IE Problem

         

dukelips

4:32 pm on Oct 10, 2008 (gmt 0)

10+ Year Member



I have a image inside a div with a background color; while it shows without any background color in firefox; a small bit of extra space appears in IE. All the margins & paddings are set to zero

swa66

10:43 pm on Oct 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Quirks mode or not can trigger a difference as an image can be inline content and sit on the text baseline (allowing for descenders to go under the line)

Aside of that IE6 tends to have "rounding errors" that appear or not if you change e.g. the size of the viewport by a pixel. This is a very annoying one to fix.

Since it's IE doing it, and not the standards compliant browsers you could fix it for the specific version of IE in a conditional comment (e.g. with a negative margin) and not worry too much about the reason.

BadBoyMcCoy

9:15 am on Oct 14, 2008 (gmt 0)

10+ Year Member



Is the extra bit of space at the bottom of the parent div? Is the Image the only thing in the div? if so you should be able to get around this by giving the parent div a height equal to that of the image

dukelips

2:13 pm on Oct 14, 2008 (gmt 0)

10+ Year Member



it is in the side of the image;

BadBoyMcCoy

2:41 pm on Oct 14, 2008 (gmt 0)

10+ Year Member



hmm maybe you could post some html and css so we can have a better look.