IT.COM

CSS Redefine body?

NameSilo
Watch
Does this:

body {
margin:0;
padding:0;
}

Equal this:

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

?

If not what would be the correct way to redefine the body with 0/0/0/0 margins?

Thank you.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
for the most part. i dont think youll see any big differences, if any. someone correct me if im wrong.
 
0
•••
0
•••
I believe those are the same, the CSS way is definitely better though and is what I always use.
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back