JanKok
01-03-2004, 10:35 AM
I know that this question is very common in html but now I am into xhtml and want to keep the page validated the question is coming back.
I can't figure out how to set margins for the body. Is there a way to do that in css? I tried already many things but without success.
e.g. the following setings have no effect
BODY, html {
margin : 0px;
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
padding-top: 0px;
padding-left: 0px;
{
I tried to do it direct into the body tag also without success.
<body style="margin: 0px;">
any ideas?
I can't figure out how to set margins for the body. Is there a way to do that in css? I tried already many things but without success.
e.g. the following setings have no effect
BODY, html {
margin : 0px;
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
padding-top: 0px;
padding-left: 0px;
{
I tried to do it direct into the body tag also without success.
<body style="margin: 0px;">
any ideas?