views:

215

answers:

2

When we float a fixed width div element to the left, the margin-left's value is doubled. Is there any solution available?

I'd prefer solutions not requiring JavaScript please.

+6  A: 

If I remember correctly, setting

display: inline

to this DIV will solve the problem.

-- edit:

details on this bug

Rafael
+1 and accepted your Answer
Wazdesign
A: 

Check this article, which will help you out of this problem.. ie6 double float margin bug