Checking your CSS,I see that you have not given any element a height.Therefore the only height would come from the #box which is much longer than #content.As #wrapper encloses both #content and #box (NOT #siteinfo)#wrappers length ends with the bottom of #box,and a bottom margin of 40px has been given to #wrapper which accounts for the 40px margin.Remove this margin and all is well !!. NOTE,an extra,unnecessary <div> appears under <div id="content"> Ernie. ( As I see it. :)
From: "Bruno Fassino" <[EMAIL PROTECTED]> To: <[email protected]>, "'Tobbe Lundberg'" <[EMAIL PROTECTED]> Subject: Re: [css-d] ie7 margin bug Date: Sun, 15 Jul 2007 08:47:07 +0200 Tobbe Lundberg wrote: There is a 40px margin below #box. It shouldn't be there. The 40px margin comes from #wrapper, but since #wrapper is much shorter than #box that margin shouldn't make any difference. Firefox 2 and Opera 9 gets it right. .... The address should be http://tlundberg.com/ie7.html Interesting! It is similar to this old bug that affects IE/Win 5, 6, 7 (and also affected Opera 7-8) http://www.brunildo.org/test/IEFloatClearMargin.html where the margin applied even when unnecessary comes from an element beside the float. IE seems to have many problems of this type (margins, paddings lost or incorrectly applied, in presence of floats and clears.) And these are not fixed in IE7. Bruno -- Bruno Fassino http://www.brunildo.org/test ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ This email was cleaned by emailStripper, available for free from http://www.papercut.biz/emailStripper.htm _________________________________________________________________ Local listings, incredible imagery, and driving directions - all in one place! http://maps.live.com/?wip=69&FORM=MGAC01 ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
