I have the page layout with footer still at the bottom of the page. The problem is when I use some divs with content which are FLOAT. If I ommit the float then the content behaves properly and does not overflow the footer. Please see:
`enter code here`
http://jsfiddle.net/8o7t4wq9/1/
CSS:
html,
body {
margin:0;
padding:0;
height:100%;
}
#container {
min-height:100%;
position:relative;
}
#header {
background:#ff0;
padding:10px;
}
#body {
padding:10px;
padding-bottom:60px; /* Height of the footer */
}
#footer {
position:absolute;
bottom:0;
width:100%;
height:60px; /* Height of the footer */
background:#6cf;
}
HTML:
<div id="container">
<div id="header"></div>
<div id="body">
<div style="width:100%;min-height:500px;background-color:gray;clear:both;">IMAGES</div>
<div style="width:30%;min-height:1500px;margin:5px;background-color:green;float:left">First box of content</div>
<div style="width:30%;min-height:1500px;margin:5px;background-color:green;float:left">Second box of content</div>
</div>
<div id="footer">FOOTER</div>
</div>