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

Mark Howells mark at mountain.ch
Fri Mar 8 09:04:00 CST 2002


>>> To eliminate the need for invalid body attributes [leftmargin="0"
>>> topmargin="0" marginwidth="0" marginheight="0"] in HTML, the following CSS
>>> produces the same effect in Netscape 4.
>>>
>>> body {margin: -10px 0 0 -10px}

>> <http.//www.mark.ac/help/noBorder.html>

> 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.

Regards
Mark Howells
<http://www.mark.ac/evl/>




More information about the thelist mailing list