You should not be using an XHTML DOCTYPE, try:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
or:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
But that may or may not solve your problem. I've had success following this sort of strategy. Using style, I first zero out the margin and padding of the body:
Code:
body {
margin:0;
padding:0;
}
Then, if I want a margin for the page, I create a page division style:
Code:
#page {
margin:10px;
}
and use it in my HTML markup to contain everything inside the body tag:
HTML Code:
<body>
<div id="page">
Everything that went in the body before now goes here
<div>
</body>
Bookmarks