|
Posted by dwight.stegall on June 5, 2006, 5:26 pm
Please log in for more thread options
silverbob wrote:
> I have been writing web pages for years using these attributes to the
> body tag:
>
> <body bgcolor=#FFFFFF marginwidth=0 leftmargin=0 marginheight=0
> topmargin=0>
>
> I'm now attempting to bring my pages into compliancy with the latest
> css based standards. I have removed the bgcolor, leftmargin, and
> topmargin attributes in favor of style sheet properties:
>
> BODY {background: #FFFFFF; margin-top: 0px; margin-left: 0px;}
>
> but, what do I do with the Netscape-specific attributes marginwidth and
> marginheight? If these are not set somewhere my pages show a small
> white margin on the left and top when viewed in Netscape, Mozilla, etc.
>
> - Bob
Do it this way.
<style type="text/css">
body {
margin:0;
}
</style>
Leave the body tag empty. Everything you can do in there can be done
better with style sheets.
<body>
best html reference http://www.w3schools.com/html/html_reference.asp best style sheet reference
http://www.w3schools.com/css/css_reference.asp html links
http://www.websitetips.com/html/ style sheet links
http://www.websitetips.com/css/ html dom
http://www.w3schools.com/htmldom/dom_reference.asp
|