brucie wrote:
> In post <bkqfp9$qsb$>
> DU said...
>
>
>>>margin on the <body> is actually incorrect. you cant have a margin
>>>outside of the available canvas area.
>
>
>
>>What are you saying exactly? Margin on the body element is rendered in
>>all W3C CSS1 compliant browsers. I don't understand why you said what
>>you said.
>
>
> if you consider the <body> element to be the available canvas area and
> not the <html> element then padding is the space between the <body>
> element and its content. that makes sense. i don't think anyone would
> disagree with that.
Are you saying that borders and padding on the root element (html)
should not be rendered? Are you saying that margins on the body element
shouldn't be rendered? Are you saying that the body element can not
render margins? Are you saying that the body element does not comply
with CSS1 box model?
>
> <html>
> <head>
> </head>
> <body>
> <padding>
> content of site
What if the author inserts here:
<p style="position:absolute; top:-300px; left:-200px;">Filling here</p>
> <padding>
> </body>
> </html>
>
> if you consider <html> to be the available canvas area then margin is
> the space between the <html> element and the <body> and <head>
> element.
>
Is that so? margin on the body element should only be rendered if the
head has the rule {display:block}?
> <html>
> <margin>
> <head>
> </head>
> <body>
> content of site
> </body>
> <margin>
> </html>
>
Regardless of the way you define what is the available canvas area, I
still don't see why margins on the body element should not (or can not
or are preferable not to) be used in a style sheet in any/all conditions.
>
> that just doesn't look right. its more logical to use padding on the
> <body> element and the suggested CSS2 style sheet has padding 8px, no
> margin.
>
Margins are part of the CSS1 box model. Regardless of how you define the
available canvas area and why you need to define it, I don't see why
body {padding:<value>} is any better or superior to body
{margin:<value>}. IMO, these properties can both be used for the body
element and both should be rendered if used. FWIW, CSS2.1 uses margins
on the body element, not padding.
http://www.w3.org/TR/CSS21/sample.html
DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html