I think this might help you.
Just showing you the way how to achieve what you want.
html, body { margin: 0; padding: 0; height: 100%; } #wrapper { min-height: 100%; position: relative; } #header { background: #ededed; padding: 10px; } #content { padding-bottom: 100px; /* Height of the footer element */ } #footer { background: #ffab62; width: 100%; height: 100px; position: absolute; bottom: 0; left: 0; }
<div id="wrapper"> <div id="header"> </div> <!-- #header --> <div id="content"> </div> <!-- #content --> <div id="footer"> </div> <!-- #footer --> </div> <!-- #wrapper -->
Make sure the value for ‘padding-bottom’ on #content is equal to or greater than the height of #footer.
Update:
JSFiddle Demo to play around.