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

Fortune Elkins thelist at lists.evolt.org
Fri Mar 8 14:42:21 2002


hiya!

so many people say this & i want to believe it! but if i actually use these
styles:

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

	HTML BODY { margin: 0; padding: 0; }

	#top {
		position: absolute;
		left:0;
		top:0;
		width: 100%;
		background-color: green;
		 }

and this markup:

<html>
<head>
<title>test</tile>
</head>
<body>
<div id="top"> <p>test</p> </div>

</body>
</html>

on an otherwise empty page in N 4.79 on NT 4 SP4, it doesn't work. i see
whitespace guys where you suggest i shouldn't. why? am i doing something
wrong? or is there a problem with this "received wisdom"??

confused,

f


----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.