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

Jay Blanchard jay.blanchard at niicommunications.com
Fri Mar 8 08:56:01 CST 2002


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?

Jay

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Mark Howells
Sent: Friday, March 08, 2002 8:50 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] [TIP] Solution: Zero body margin with CSS in
NN4.x


>>> 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}
>>
>> This worked for me in NS 4.x with any negative number:
>>
>> body { margin: -10px}

> What does the negative number do in other browsers?

It puts the left and top edges of the body off the top left corner of the
screen. Try the code from the demo at
<http.//www.mark.ac/help/noBorder.html> in IE without the second CSS
declaration to see what happens.

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

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !






More information about the thelist mailing list