PDA

View Full Version : Help with my page layout.... PLEASE (help centering)


jamocamac
09-14-2009, 10:24 PM
Hello All... I just can't get my page to center... here is my code... PLEASE HELP!!!




<!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>
<title>Site Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="JavaScript" type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS ---------------
</script>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<style type="text/css">
<!--
html,body {
width:90% ;
height:98.5%;
margin:0.25%;
padding:0.25%;
}
body {
border: 1px solid #000;
background-color: #FFFFFF;
}
//-->
</style>
</head>
<body>

coloeagle
09-14-2009, 11:55 PM
Take a read of the centering content (http://www.dreamweaverclub.com/css-center-content.php) article in the tutorials section.

Couple things strike me as strange.
Do you really need to have the height setting?
The margin and padding set for one-quarter percent? Seems really small?