Hi
I’m trying to design a centred website, however I can’t get the layers to automatically centre in different browser dimensions (both Firefox and IE)
Could anyone help, it would be much appericated, please.
Thanks
Andy
<!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=iso-8859-1" />
<title>Welcome to Northern Television ~ Test page</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:170px;
top:-1px;
width:750px;
height:150px;
z-index:auto;
cursor: auto;
border: 1px none #FFFFFF;
text-decoration: none;
list-style-position: outside;
list-style-image: url((URL));
list-style-type: upper-alpha;
clear: both;
float: left;
}
body {
background-color: #5E88AE;
page-break-before: always;
page-break-after: always;
float: left;
}
#Layer2 {
position:absolute;
left:170px;
top:150px;
width:750px;
height:476px;
z-index:1;
background-color: #CDD6FD;
list-style-position: inside;
list-style-image: url((URL));
list-style-type: none;
}
#Layer3 {
position:absolute;
left:170px;
top:151px;
width:750px;
height:20px;
z-index:2;
background-color: #B1C0FE;
}
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
.style2 {color: #FFFFFF}
#Layer4 {
position:absolute;
left:170px;
top:151px;
width:224px;
height:20px;
z-index:3;
background-color: #A9BAFE;
background-image: url(Untitled-1.png);
}
.style3 {font-family: Arial, Helvetica, sans-serif}
.style4 {color: #354E84}
.style6 {font-family: "Myriad Web"; font-size: 14px; }
-->
</style>
</head>
<body>
<span id="Layer1"><img src="header.jpg" width="750" height="150" /></span>
<div id="Layer2"></div>
<div id="Layer3">
<div align="center" class="style2"> <span class="style6"><marquee>Welcome to Northern Television, serving the North West of England for SIX</marquee>
</span></div>
<span class="style1"><marque>
<div align="center"></div>
</span></div>
<div class="style3" id="Layer4">
<div align="center" class="style4"></div>
</div>
</body>
</html>
And here is the zip containing what the page looks like:
http://www.themocksfactory.co.uk/andy/Test.zip