Hey guys, I am having a hell of a time trying to get my page centered, I have used a tutorial which seems to help everyone, but it didn’t work for me.
http://mindpalette.com/tutorials/center_layers/index.php
Here is the code, please let me know what I am doing wrong.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="generator" content="Adobe GoLive" />
<title>Ian Photography</title>
<style type="text/css" media="screen"><!--
#layer1 { text-align: center; height: 152px; width: 861px; left: 40px; top: 30px; position: absolute; visibility: visible; }
#layer2 { text-align: center; height: 630px; width: 840px; left: 30px; top: 110px; position: absolute; visibility: visible; }
#wrapper { text-align: left; width: 850px; height: auto; margin-right: auto; margin-left: auto; }
body { text-align: center; }
--></style>
</head>
<body bgcolor="black">
<div id="wrapper">
<div id="layer1">
<div style="position:relative;width:861px;height:132px;-adbe-g:p;">
<div style="position:absolute;top:0px;left:0px;width:812px;height:127px;">
<img src="Images/Title.png" alt="" height="127" width="812" border="0" /></div>
</div>
</div>
<div id="layer2">
<div style="position:relative;width:840px;height:582px;-adbe-g:p;">
<div style="position:absolute;top:16px;left:128px;width:182px;height:52px;">
<img src="Images/about.png" alt="" height="52" width="182" border="0" /></div>
<div style="position:absolute;top:16px;left:336px;width:182px;height:52px;">
<img src="Images/hire.png" alt="" height="52" width="182" border="0" /></div>
<div style="position:absolute;top:16px;left:544px;width:182px;height:52px;">
<img src="Images/contact.png" alt="" height="52" width="182" border="0" /></div>
</div>
</div>
<p><img src="Images/title.gif" alt="" height="98" width="844" border="0" /><img src="Images/photo_home.gif" alt="" height="594" width="844" border="0" /></p>
</div>
</body>
</html>