So I'm using Dreamweaver for my website, I've got a div called "Page" which I am using for a minimum width of 1000px and centered in the screen. At the moment, all the content inside of the page div is centered on my screen, however on another screen it's further off to the left. How do i get each individual element's left attribute (or equivalent) inside the Page div to see the edge as the edge of page div instead of the edge of the browser window?
Snippet of my code: #Title and #Home are menu items inside the page div.
body {
background: url(../images/background-texture%20d.jpg);
}
#page {
z-index: 1;
width: 1000px;
min-height: 1257px;
margin-left: auto;
margin-right: auto;
}
#title {
z-index: 4;
position: absolute;
top: -10px;
left: 0px;
margin: 0;
}
#Home {
z-index: 4;
position: absolute;
top: 0px;
left: 694px;
width: 89px;
height: 65px;
margin: 0;
background: url(../images/button%20texture%20b.jpg);
border-style: solid;
border-width: 1px;
border-color: #7F7F7F;
border-top: none;
border-bottom: none;
text-align: center;
}
HTML code
<!doctype html>
<html>
<head>
<link href="css/main.css" rel="stylesheet" type="text/css">
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<div id="page">
<div id="TopLinks">
</div>
<div id="HeaderContainer">
<img src="images/title g-u5076.png" id="title">
<div id="Home">
<a href="/">HOME</a>
</div>
<div id="Guides">
<a href="/">GUIDES</a>
</div>
<div id="Forum">
<a href="/">FORUM</a>
</div>
<div id="Blog">
<a href="/">BLOG</a>
</div>
<div id="Guilds">
<a href="/">GUILDS</a>
</div>
<div id="Play">
<a href="/">PLAY NOW</a>
</div>
</div>
<div id="Top-Gradient">
</div>
<div id="PictureContainer-top">
</div>
</div>
</body>
</html>