ma le pagine le scrivi da sola?
si può vedere cosa stai facendo?
copia-incollare un doctype come prima cosa di un documento html non mi sembra così difficile
codice:
<!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=utf-8" />
<title>centrato</title>
<style type="text/css" media="all">
* {
	margin: 0;
	padding: 0
}
html {
	height: 100%;
}
body {
	height: 100%;
	width: 100%;
	text-align: center
}
.pp {
	height: 50%;
	background-color: rgba(0,0,255,0.5)
}
.oo {
	height: 10em;
	width: 40em;
	background-color: rgba(255,0,0,0.5);
	margin: -5em auto 0
}
</style>
</head>

<body>
    <div class="pp"></div>
    <div class="oo"></div>
</body>
</html>