[thelist] Internet Explorer ignoring margin

Sarah Adams sarahwbs at gmail.com
Tue Feb 3 19:48:44 CST 2009

> This will probably be simple for somebody, but I'm stumped. For almost  
> an entire site, most versions of Internet Explorer (v. 9 gets it  
> right) ignore the top margin on a div. The pages validate (both HTML  
> and CSS) and look good on all other recent browsers. A sample page is  
> here:
> <http://orbgoddess.com/singleimage.php/4/>
> The other IE margin bugs I've read about involve floating elements,  
> but there are none on this page. There are a series of absolutely- 
> positioned elements above and to the left of the main content div; the  
> margins for div.content clear the absolutely positioned elements...  
> except the margin-top on thse critical versions of IE.
> I've tried other ways to code the margins; I've tried tracking down  
> known IE bugs. The problem persists and I don't know what else to try.
> Any ideas?

Sounds to me like it might be a case of collapsing margins. Others have 
explained this far better than I could:

sarah adams

More information about the thelist mailing list