I wrote, previously:
> Has anyone ever come up with an alternative way to set body margins
that
> will validate with W3C's HTML 4.01 Transitional? I'm using the
typical:
> <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
style="margin:0;padding:0">
Janet replied:
When using a style declaration, there is a specific order in which the
attributes have to be listed, e.g. top, right, bottom, left. You could
try listing the attributes in this order and see if it validates.
Stephen replied:
Get rid of all the leftmargin, etc. and specify a unit for the CSS. All
you need is:
body{ margin: 0px;}
if it is in a linked (prefferred) or embedded style sheet.
or: <body style=3D"margin:0px;"> if its inline (avoid)
Peter replied:
I suggest to use stylesheets (CSS) instead of this kind on definition.
Have a look at http://www.w3schools.com in the section Learn CSS.
Tim sez:
I'll try these out. I forgot to mention that this must support Netscape
4.7x, if that makes a difference...seems that I remember reading
somewhere that NS4.7x didn't handle the CSS margins stuff properly.
I've slowly been weeding out all the inline CSS and moving it to the
stylesheet - almost there. If anyone knows that one of these methods
will definitely work in NS4.7 please let me know.
Thanks for the tips!
Tim
___________________________
Tim Furry
Web Developer
Foulston Siefkin LLP
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]