Re: [css-d] body has a top-margin that I can not figure out

2010-12-29 Thread Eric A. Meyer
At 9:31 AM +0900 12/29/10, Philippe Wittenbergh wrote: On Dec 29, 2010, at 2:45 AM, Greg Wilker wrote: How come the header is pushing it down if it is contained within the contain element? you should read up on margin -collapsing http://www.w3.org/TR/CSS21/box.html#collapsing-margins

Re: [css-d] body has a top-margin that I can not figure out

2010-12-29 Thread Greg Wilker
Subject: Re: [css-d] body has a top-margin that I can not figure out you should read up on margin -collapsing http://www.w3.org/TR/CSS21/box.html#collapsing-margins     If that proves too daunting, as W3C specifications often are, http://complexspiral.com/publications/uncollapsing-margins/

[css-d] body has a top-margin that I can not figure out

2010-12-28 Thread Greg Wilker
Hello Everyone, I've got a site I am starting on and I can not figure out why there is a padding or margin with the container div/element. http://45minutestonowhere.com/ I want the background image (container) to be right up to the top of the browser. Thoughts? (I must be missing something

Re: [css-d] body has a top-margin that I can not figure out

2010-12-28 Thread Germán Martínez
Hi Greg, Here's the problem: #header { margin: 50px 10px 10px 30px; } On Dec 28, 2010, at 12:11 PM, Greg Wilker wrote: Hello Everyone, I've got a site I am starting on and I can not figure out why there is a padding or margin with the container div/element.

Re: [css-d] body has a top-margin that I can not figure out

2010-12-28 Thread Chetan Crasta
As German pointed out, the top margin of div#header is the cause. Since div#container does not have top padding or a top border, the top margin of its child (div#header) collapses through. ~Chetan __ css-discuss

Re: [css-d] body has a top-margin that I can not figure out

2010-12-28 Thread Alan Gresley
On 29/12/2010 4:11 AM, Greg Wilker wrote: Hello Everyone, I've got a site I am starting on and I can not figure out why there is a padding or margin with the container div/element. http://45minutestonowhere.com/ I want the background image (container) to be right up to the top of the

Re: [css-d] body has a top-margin that I can not figure out

2010-12-28 Thread Chris F.A. Johnson
On Tue, 28 Dec 2010, Greg Wilker wrote: Hello Everyone, I've got a site I am starting on and I can not figure out why there is a padding or margin with the container div/element. http://45minutestonowhere.com/ There's more than that to worry about:

Re: [css-d] body has a top-margin that I can not figure out

2010-12-28 Thread Greg Wilker
How come the header is pushing it down if it is “contained” within the contain element? Do I have to do a position relative? inquiring minds, Greg _ From: Germán Martínez [mailto:ger...@martinez.pe] Subject: Re: [css-d] body has a top-margin that I can not figure out Hi

Re: [css-d] body has a top-margin that I can not figure out

2010-12-28 Thread Greg Wilker
From: Chris F.A. Johnson [mailto:ch...@cfajohnson.com] Subject: Re: [css-d] body has a top-margin that I can not figure out On Tue, 28 Dec 2010, Greg Wilker wrote: Hello Everyone, I've got a site I am starting on and I can not figure out why there is a padding or margin with the container

Re: [css-d] body has a top-margin that I can not figure out

2010-12-28 Thread Philippe Wittenbergh
On Dec 29, 2010, at 2:45 AM, Greg Wilker wrote: How come the header is pushing it down if it is “contained” within the contain element? you should read up on margin -collapsing http://www.w3.org/TR/CSS21/box.html#collapsing-margins Philippe --- Philippe Wittenbergh http://l-c-n.com/