If you’re one of the idiots still using ie6, for the love of god, please use a different web browser. I don’t care what, IE7, Firefox, Safari, Opera, lynx. Just make it anything else. I just spent the last 2 hours trying to figure out why something was so messed up in IE6. Turns out I came across the “IE6 double margin” bug. In short, if you have some css like this:
div#example {
float:left;
margin-left:100px;
}
IE6 will make the left margin about 200px, NOT 100px. So how do you fix it? Add “display:inline;” and, magically, IE6 decides that you want a 100px margin and not some random arbitrary number that you never wrote. And, yes, this works properly in IE7, Safari, and Firefox.
Thanks man… You saved my life… I been looking to get around this problem for the last couple of hours with no luck… IE6 sucks big time and we still have idiots using it that leaves us no choice but to optimize for this crap.
[...] IE6 left margin problem ie6 float left margin problem [...]
Thanks man… You saved my life… I been looking to get around this problem