RE: BODY Attribute Question

The relevant code:

<STYLE TYPE="text/css">
<!--
BODY {
 margin: 0;
}
-->
</STLYE>

Or you can place it inside a .css file and use:

<LINK REL=STYLESHEET TYPE="text/css" HREF="site1.css">

Then put 

BODY {
 margin: 0;
}

Into a file called site1.css.

Both of these go inside your <HEAD> </HEAD> tags.

-----Original Message-----
From: www-validator-request@w3.org [mailto:www-validator-request@w3.org]
On Behalf Of Ian Anderson
Sent: March 28, 2002 2:11 PM
To: www-validator@w3.org
Subject: RE: BODY Attribute Question


I had the same problem. You should use Style Sheets to define margins in
HTML 4.01 Transitional. Browsers that don't understand style sheets
don't understand margin definitions anyway, so you may as well convert
them.

-----Original Message-----
From: www-validator-request@w3.org [mailto:www-validator-request@w3.org]
On Behalf Of Bain, Kathy D
Sent: March 28, 2002 12:33 PM
To: 'www-validator@w3.org.'
Subject: BODY Attribute Question


I can't seem to get my HTML documents to be Valid HTML 4.01
Transitional.  I need these attributes (topmargin, leftmargin,
marginwidth, marginheight ) in my body tag.  Everything works fine, but
I'd like to be able to show that my documents are W3C compliant.  Why do
I keep getting this error and what does it mean?  Is it my the SGML
parser?  

Line 43, column 16: Error: there is no attribute "TOPMARGIN"
            <body topmargin="0" leftmargin="0" marginwidth="0"
marginheight="0" on ...
                            ^


Line 43, column 31: Error: there is no attribute "LEFTMARGIN"
	<body topmargin="0" leftmargin="0" marginwidth="0" marginhei ...
                                                 ^


Line 43, column 47:   Error: there is no attribute "MARGINWIDTH"
	gin="0" leftmargin="0" marginwidth="0" marginheight="0" onLo ...
                                                      ^


Line 43, column 64:  Error: there is no attribute "MARGINHEIGHT"
	n="0" marginwidth="0" marginheight="0" onLoad="MM_preloadIma ...
                                                       ^


Kathy Bain
kathy.d.bain@boeing.com

Received on Thursday, 28 March 2002 14:28:52 UTC