Possible Duplicate:
How to make the web page height to fit screen height
I've an HTML page that doesn't take up the whole screen. It just takes the size of the HTML content & the footer is not at the end of the page (as it should be)
How can I fix it?
I just need the footer to be at the end of the page.
My HTML structure is as follows:
<body>
<div id="app">
<!-- Header -->
<div id="header"></div>
<!-- Hero container -->
<div class="container">
<!-- Sub container -->
<div class="container"></div>
</div>
<!-- Footer -->
<div id='footer'></div>
</div>
</body>
My CSS is as follows:
html {
height: 100%;
}
body {
color: hsl(0, 0%, 33%);
font-family: Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 1;
background: none repeat scroll 0 0 hsl(0, 0%, 98%);
margin: 0;
padding: 0;
height: 100%;
}
* {
outline: 0 none;
}
#app {
min-height: 100%;
margin:auto;
width: 100%;
}
div,span,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,a,big,cite,code,del,dfn,em,img,small,strike,strong,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tr,th,td,embed,menu,nav
{
border: 0 none;
font: inherit;
margin: 0;
padding: 0;
vertical-align: baseline;
}
.container {
margin: 0 auto;
position: relative;
width: 990px;
}
#footer {
margin: 100px 0 0;
}
Can anyone please guide me. I'm new to CSS. :( Stuck bad! :(
EDIT
Can it be because I have float in some of the div elements inside body?
EDIT 2
Strange thing is that even if the page is long and I scroll down, after the footer there's this small strip of white space which never goes. When I try to select the white space with Firebug, it shows me as the element.