TheKeith said:
I was wondering if it's a good idea to set the margins in my pages with
styles or to use the old non-standards-compliant marginwidth=0
marginheight=0 topmargin=0 leftmargin=0 body properties instead? It would be
nice to just set all of that stuff wit standard-compliant styles instead.
What do you think?
The various non-standard HTML attributes fall into three categories:
1. Totally useless
rightmargin and bottommargin are only supported by the browsers that
also support the CSS equivalents.
2. Very nearly totally useless
topmargin and leftmargin are supported by IE3 which had very poor CSS
support. But IE3 is so rarely encountered these days and I doubt that
page margins are the top problem met by anyone still using it.
3. Fairly useless
marginwidth and marginheight are supported by NN4 which has problems
with CSS page margins, indeed with much of CSS. NN4 is seen more often
than IE3 but the comments above also apply in the most part.
So unless you have _very_ good reason to aim for an identical
presentation in NN4 and/or IE3 then I wouldn't recommend these
attributes.
If you go the CSS route then be sure to specify both margin and
padding for body as different browsers have different defaults (e.g.
Opera has zero default margin but non-zero default padding, whilst IE
is the opposite).
Steve