<!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" xml:lang="en" lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Image Dead Center on Page Technique</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="Ron" />
<meta name="date" content="2/23/2009" />
<meta name="copyright" content="PayneLess Designs" />
<!-- <link type="text/css" rel="stylesheet" href="css_page_designs.css"> -->
<!-- <script type="text/javascript" src=""></script> -->
<style type="text/css">
* { margin: 0; padding: 0; border: 0; }
body, html {
background: #fc6;
font: normal 11px "Comic Sans MS",;
color: #333;
}
#container {
position:absolute;
top: 50%;
left: 50%;
width: 300px;
height: 200px;
margin: -100px 0 0 -150px;
background: #ccc;
}
#container p {
text-align: center;
height: 200px;
line-height: 25px;
}
img#test {
width: 195px;
height: 175px;
}
</style>
</head>
<body>
<div id="container">
<p>This is vertically & horizontally centered: <img id="test" src="http://img534.imageshack.us/img534/4864/boat6087218.jpg" alt="fishing boat" /></p>
</div>
</body></html>