* is the universal selector so it is setting the margin & padding to 0px for all elements on the page.
As an aside, I have found I get the best results comparing my pages between different browsers by selecting a strict doctype, setting the margins to 0 for all elements that dont have some other margin set, and then validating the HTML and CSS.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.