Setting Marginheight, Topmargin, etc. in Body depreciated.
As I was working on setting up a new site today, I took a look at the error checking that Dreamweaver does and found that the Marginheight, Marginwigth, Topmargin, Leftmargin properties were depreceated. Curious as to what the proper replacement should be, this is the solution.
Body{
Magin:0px;
Padding:0px;
}
The Body selector needs to have the margin and padding properties defined in it. Margin is generally for Mozilla browsers and padding for IE.
Here are some similar arcade posts
- How do I get a consistent padded border around a thumbnail image?
- How do I control my margin vs. padding? Is there any other way to get around using the “child” element hack?
- CSS Hacks with the Child Selector
- Design your own CSS website Part 1: The Wrapper
- Which should I use, relative or absolute positioning?
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.











Comments
No comments yet.
Leave a comment