Msg#: 4242781 posted 10:38 pm on Dec 15, 2010 (gmt 0)
It might be the issue of collapsed margins, the most undesirable and poorly thought out implementation in all of CSS. It should seriously be removed as it's anti-intuitive and has wasted countless hours. Unfortunately since it's already implemented in all browsers what you'll have to do is use padding in conjunction with margin which is the only way to get around this implementation bug (the top and bottom margins will collapse if they are both 20px in example I think). Yes I consider it a bug and nothing will change my mind as anti-intuitive standards should not be made in to standards. Hope this helps.
Msg#: 4242781 posted 9:48 am on Dec 16, 2010 (gmt 0)
Sorry Greencode, the problem here is not collapsing margins after looking at your code.
If you put your margin rules on #wrap, it will work and add a margin at the bottom of the page.
If you think about it from the point of "I want a margin at the bottom of this element with a white background" - you need to add the margin to the element with the white background, in this case #wrap.