Forum Moderators: open

Message Too Old, No Replies

Internet Explorer adds margins that don't exist

Internet Explorer adds margins that don't exist

         

giacomogd1

2:31 pm on Aug 19, 2004 (gmt 0)

10+ Year Member



I'm sorry if my English isn't good

If you have one spare minute, check out these HTML lines in both IE and Mozilla.

<html>
<head><title>foo</title></head>
<body>
<div style="float: left; width: 200px">
<b>Menu</b><br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
</div>
<div style="margin-left: 200px;">
<b>Content</b><br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
foo foo foo<br>
</div>
</body>

You'll see that in IE6 some lines in the "Content" coloumn are rendered with a 3px margin at the left. It's hard to explain, you have to see it to understand...
Why does IE add this margin that actually doesn't exist?!
I have a situation like this one in my website and I'm getting crazy. May microsoft burn in the hell.

MatthewHSE

3:17 pm on Aug 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld!

And your English isn't that bad at all!

I think what you're referring to is the famed "IE 3-pixel float bug." Try a site search here and a Google search and see what you find.

Here's a good description:

[positioniseverything.net...]

[webmasterworld.com...] (Msg. 5)

giacomogd1

7:12 am on Aug 20, 2004 (gmt 0)

10+ Year Member



thank you.