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
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/
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
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.
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
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
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:
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
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
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/
10 matches
Mail list logo