hello, i spent a good while trying to figure this out and final gave up. The issue is this page displays correctly in every browser i tried, except IE6.
Th problem is that the content starts below the header (which is transparent to show the error). This pushes the whole page down causing the scrollbar to appear.
I cant figure this out and i really hate microsoft right now. Any advise will be very appreciated. thanks.
Th problem is that the content starts below the header (which is transparent to show the error). This pushes the whole page down causing the scrollbar to appear.
I cant figure this out and i really hate microsoft right now. Any advise will be very appreciated. thanks.
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<style type="text/css">
*{padding: 0;margin: 0;}
img{border-style: none;}
html, body{
height: 100%;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
#header{
z-index: 5;
height: 75px;
width: 100%;
position:fixed;
top: 0px;
left: 0px;
border-bottom-color: #13279a;
border-bottom-style: solid;
border-bottom-width: 3px;
}
#container{
z-index: 1;
height: 100%;
background-image: url(images/background.png);
margin-left: auto;
margin-right: auto;
width: 700px;
padding-bottom: -55px;
}
#main{
padding-top: 75px;
width: 650px;
margin-left: auto;
margin-right: auto;
}
#footer{
margin-left: 25px;
background-repeat: no-repeat;
color: white;
width: 650px;
height: 55px;
background-image: url(images/footer.png);
font-size: small;
text-align: center;
position: absolute;
bottom: 0px;
}
</style>
</head>
<body>
<div id="header">
<h1>HEADER</h1>
</div>
<div id="container">
<div id="main">
<br />
<img src="images/about.png" alt="image" width="175" height="30"/>
<hr />
<br />
<p class="text">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div id="footer">
<br />
<p>copyright</p>
</div>
</div>
</body>
</html>