[thelist] Setting page Margins that will validate

Peter-Paul Koch gassinaumasis at hotmail.com
Mon Mar 5 09:03:17 CST 2001


>In my ignorance I've been happily using leftmargin,  topmargin,
>marginwidth and marginheight attributes in the body tag of pages for a 
>while. Having recently become obsessed with getting a W3C validated gif on 
>my site I discovered that HTML 4.01 (or quite possibly any
>other version of HTML) doesn't allow these attributes. I'm
>guessing/hoping there's a way of setting body margins as a style

body {margin: 0px;}

Doesn't work in Netscape 4, so there you'll have to choose between a 
validating and a working site.

ppk
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the thelist mailing list