Hi Michael,
I am new to this listserve so please forgive me if I am off base.
I have added a 3px yellow border to your containing div, and it appears to be
positioned at 0 (top) of the body.
am I missing something? I have looked at it in Firefox 5.0 and IE 6.0. However
to center the
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
Subject: Re: [css-d] simple margins question
I am new to this listserve so please forgive me if I am off base.
On the contrary, I appreciate your help!
I have added a 3px yellow border to your containing div, and it appears to be
positioned at 0 (top
Hi;
I'm trying to position the content area of a p below the top outer edge of its
containing div, by giving the p a large margin. The div is horizontally
centered within the body, is flush with the top of the page, and has no margins
or padding. To my surprise, the resulting p ends up
Hey Michael,
Give the html element above the p that u want padding:1px; or border:1px;
so its children dont 'punch through' their top margins (so more specifically
padding-top:1px; in your case).
Otherwise the margins collapse and larger of 2 wins.
(for a beginning the 1st few examples here
Michael Leibson wrote:
Hi;
I'm trying to position the content area of a p below the top outer edge of
its containing div, by
giving the p a large margin. The div is horizontally centered within the
body, is flush with the
top of the page, and has no margins or padding. To my surprise,
I think id prefer padding, but borders are just as good.
Here is an example showing you a couple ways of doing same thing.
#example2 uses more emphasis on parent doing all the intial padding,
#example1 on the child (with 1px padding on parent to preven margins from
punching through).
Switch
Message: 18
Date: Sat, 28 Jul 2007 13:30:03 -0700
From: Alan Gresley [EMAIL PROTECTED]
Subject: Re: [css-d] simple margins question
To: css-d@lists.css-discuss.org
Message-ID:
[EMAIL PROTECTED]
Content-Type: TEXT/plain; CHARSET=US-ASCII
Michael Leibson wrote:
. . . If this is a case