1 reply [Last post]
stoefln
Offline
Regular
Last seen: 14 years 33 weeks ago
Joined: 2007-05-29
Posts: 11
Points: 0

please look at the following page in IE6 and Firefox. IE doubles the left-margin. why?
occurs just with float-divs.
http://ra.synapsick.net/fileadmin/rackattack/temp/testCSS.html

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 9 years 18 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

Why? That is something you

Why?
That is something you will need to ask the IE dev team.

It is a well known issue. Give the floating element with the double margin a display:inline to fix it.

stoefln
Offline
Regular
Last seen: 14 years 33 weeks ago
Joined: 2007-05-29
Posts: 11
Points: 0

thank you, works great (at

thank you, works great (at least in this case) but what if i want to have a floating block-element?

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 3 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

A float is block level,

:? A float is block level, it's a consequence of applying the float property.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 3 years 12 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

What Hugo means is that

What Hugo means is that despite you putting display:inline all browsers make floats display:block, even IE, so the inline will be ignored. But it fixes the bug. Daft code to fix a daft bug.