5 replies [Last post]
Alienfeet
Alienfeet's picture
Offline
Regular
Last seen: 10 years 4 weeks ago
Timezone: GMT+1
Joined: 2006-05-24
Posts: 25
Points: 2

Hi Guys,

I have a layout which has 2 floated columns nested in another floated div.

http://www.firstserver1.net/davew/johnleggott/index.asp

Works fine in FF and IE7 but in IE6 the 3rd column (far right) appears underneath the 2nd column. It's not the content of the column because I've stripped it out and it still does the same. Any Ideas??

Thanks Guys

Rhuantavan
Rhuantavan's picture
Offline
Regular
Slovenia, EU
Last seen: 11 years 38 weeks ago
Slovenia, EU
Timezone: GMT+1
Joined: 2008-03-31
Posts: 14
Points: 0

doubled margins bug

Must be because margins get doubled on elements that are floated, which increases the div width and the layout breaks down. You can solve this problem by adding a display:inline for that offending div in your ie css file.

See 5. on http://scarfoo.com/archives/16.

Comfy Web Development With Standards In Mind
http://scarfoo.com

Alienfeet
Alienfeet's picture
Offline
Regular
Last seen: 10 years 4 weeks ago
Timezone: GMT+1
Joined: 2006-05-24
Posts: 25
Points: 2

Still no joy!

Thanks for the reply Rhuantavan,

but I still have the problem.

I've zero'd out all margins, tried the display:inline technique, floated left and right but still no change...totally flumoxed!!

Rhuantavan
Rhuantavan's picture
Offline
Regular
Slovenia, EU
Last seen: 11 years 38 weeks ago
Slovenia, EU
Timezone: GMT+1
Joined: 2008-03-31
Posts: 14
Points: 0

I managed to put the right

I managed to put the right col in place by narrowing the #primarycontent a bit (to 470px). It goes about 15px over to the right column. Hope this does the trick!

Comfy Web Development With Standards In Mind
http://scarfoo.com

Alienfeet
Alienfeet's picture
Offline
Regular
Last seen: 10 years 4 weeks ago
Timezone: GMT+1
Joined: 2006-05-24
Posts: 25
Points: 2

Nice one!

Hey Rhuantavan, you the man!!

Cheers that fixed it, thanks a lot.

Rhuantavan
Rhuantavan's picture
Offline
Regular
Slovenia, EU
Last seen: 11 years 38 weeks ago
Slovenia, EU
Timezone: GMT+1
Joined: 2008-03-31
Posts: 14
Points: 0

No problem, love debugging

No problem, love debugging IE Wink

Comfy Web Development With Standards In Mind
http://scarfoo.com