Hi,
Use the global reset outlined in the CSS FAQ, then you need to put back margin/padding where you are wanting it.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
* {margin: 0; padding: 0;}
body { padding: 0 20px;}
</style>
</head>
<body>
<h1>title</h1>
<p>paragraph</p>
<div style="position:absolute;top:0">header</div>
</body>
</html>
Bookmarks