Welcome to WebmasterWorld Guest from 54.145.173.36

Forum Moderators: not2easy

Message Too Old, No Replies

margin left problem in IE6

margin left

   
1:31 am on Sep 25, 2007 (gmt 0)

5+ Year Member



Hi all,

I need ur help, I got problem when I use margin-left for my left column in my page.
I preview in FF and IE7 everything is OK (the position is what I expected) , when I preview it in IE6 the 2 column (left column and right column) quiet far to the right.
Here is the code :

.left{
float:left;
margin-top:8px;
width:355px;
margin-left:8px;
margin-right:12px;

}

IE6 interpret "margin-left:8px" quiet differently than FF/IE7 do.
Can anyone help me to solve this?

many thanks

[edited by: Robin_reala at 6:46 am (utc) on Sep. 25, 2007]
[edit reason] No personal URLs please [/edit]

6:49 am on Sep 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



IE6 shouldn't interpret margins differently, unless you're experiencing the class 'double margin' bug which you'd solve here by adding 'display:inline' to '.left'. If not the have you got some content inside that's pushing it too far out?

At this point it'd probably be useful to make a reduced testcase - make a copy of the page then start ripping out all unnecessary code until the problem goes away. That'll give you an indication of what exactly is going wrong.

1:22 am on Sep 26, 2007 (gmt 0)

5+ Year Member



Hi Robin, I add display:inline and it works, many thanks for you