sparticuz13
07-24-2007, 09:50 AM
OK so I'm trying to make it so there is no margin or no space between the top rendering area of the browser and my content. It is working in IE 7 but not FF.
I have my content in a div wrapper that has the top-margin set to 0px. I am also including the the top-margin 0px in the main body html tag. The div wrapper is inside the body tags. Its working fine in IE but there is a space in FF. My wrapper is set to relative, it I switch it to absolute it removes the space in FF. Any ideas. I need to use relative in the wrapper.
http://www.sparticusgoods.com/testing2/
<html>
<head>
<title>Sparticus Goods</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
#wrapper {
position:relative;
background-color:#FFFFFF;
width:1076px;
height:auto;
margin-top:0px;
margin-left:auto;
margin-right:auto;
}
#topbar {
position:absolute;
width:1076px;
height:169px;
top:0px;
left:0px;
}
body {
background-color: #666666;
}
</style>
</head>
<body" style="text-align:center; background-color:#666666; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">
<div id="wrapper">
<div id="topbar">
<img src="images/Top Bar.gif" width="1076" height="169" alt="" /> </div>
<div style="text-align:center">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>TESTING</p>
</div>
</div>
</body>
</html>
I have my content in a div wrapper that has the top-margin set to 0px. I am also including the the top-margin 0px in the main body html tag. The div wrapper is inside the body tags. Its working fine in IE but there is a space in FF. My wrapper is set to relative, it I switch it to absolute it removes the space in FF. Any ideas. I need to use relative in the wrapper.
http://www.sparticusgoods.com/testing2/
<html>
<head>
<title>Sparticus Goods</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
#wrapper {
position:relative;
background-color:#FFFFFF;
width:1076px;
height:auto;
margin-top:0px;
margin-left:auto;
margin-right:auto;
}
#topbar {
position:absolute;
width:1076px;
height:169px;
top:0px;
left:0px;
}
body {
background-color: #666666;
}
</style>
</head>
<body" style="text-align:center; background-color:#666666; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">
<div id="wrapper">
<div id="topbar">
<img src="images/Top Bar.gif" width="1076" height="169" alt="" /> </div>
<div style="text-align:center">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>TESTING</p>
</div>
</div>
</body>
</html>