[thelist] [TIP] Solution: Zero body margin with CSS in NN4.x

Craig Saila crsaila at yahoo.ca
Fri Mar 8 11:41:01 CST 2002


Mark Howells wrote:
>>>>body {margin: -10px 0 0 -10px}
[snip]
>>OK, so you must use the @import statement so that all browsers work with a 0
>>border if you include the negative number to compensate for NN's inadequacy,
>>right?
>
> Yes.

(Posted this to another list as well so I apologies for any duplication)

I think it's possible to avoid the @import by doing this:

  BODY {margin: -10px 0 0 -10px}
  HTML BODY { margin: 0; padding: 0; }

Works on:
- Win: IE5 & 6, Moz/NN6, NN4.x, O5 & 6
- Mac: IE4.5 & 5, O5, NN4.x

--
Cheers,

Craig Saila
------------------------------------------
craig at saila.com  :  http://www.saila.com/
------------------------------------------


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




More information about the thelist mailing list