I've been trying all methods to stretch the background color to fill 100% of the page but it doesn't work in Firefox 3. It just stretches to where the content is. It seems to work fine in IE 7, but there is some space to scroll up and down.
Here's my CSS:
body {
height: 100%;
background-color: #666;
margin: 0px;
margin-top: -1px;
background-image: url(Background.jpg);
}
.container {
height: 100% !important;
min-height: 100%;
background-color: #252525;
width: 80%;
min-width: 1000px;
max-width: 1400px;
border: #444 1px solid;
margin: 0px;
}
And this is my HTML:
<body>
<center>
<div class="container"> <!-- Open -->
<div class="header"></div> <!-- Header -->
<!-- Content -->
<div class="page">
<div class="content">Content</div><div class="sidebar"> Sidebar </div>
</div>
<!-- Footer -->
<div class="footer">
<br /><br /><br /><br /><br /><p><span class="footercont">
Footer
</span></p></div>
<div class="fill"></div> <!-- Fill -->
</div> <!-- Close -->
</center>
</body>
Many thanks to those who help me.