[thelist] html attributes for margin width etc

Peter-Paul Koch gassinaumasis at hotmail.com
Thu Oct 17 07:43:01 CDT 2002

> > I have just tried to validate a html doc and received these errors any
> > idea what
> > I can do to get alignment without using these tags?  html version 4.01
>We found a way round this a while back -- try this CSS.
>body	{margin:-10px 0 0 -10px}
>html body {margin:0}
>(It's all about confusing Netscape 4. You might need to adjust the
>negative margin to get it exactly at 0,0 in that browser, which doesn't
>understand the html body {} syntax.)


A NN4 trick I didn't know! Thanks!

Now for Opera: it has the same margin problems, and the -10px hack works,
but how do you evade the html body line, which Opera does understand?


Unlimited Internet access -- and 2 months free!  Try MSN.

More information about the thelist mailing list