HTML markup
<div id="wrapper">
<div id="header"></div>
<div id ="content"></div>
<div id="footer"></div>
</div>
CSS
html, body {
color: #606060;
margin: 0;
padding:0;
height: 100%;
}
#wrapper{
min-height: 100%;
position: relative;
}
#header{
padding: 10px;
background: yellow;
}
#content{
padding: 10px;
padding-bottom: 80px;
}
#footer{
width: 100%;
height: 80px;
position: absolute;
bottom: 0;
left: 0;
background: blue;
}
<div id="wrapper">
<div id="header"></div>
<div id ="content"></div>
<div id="footer"></div>
</div>
CSS
html, body {
color: #606060;
margin: 0;
padding:0;
height: 100%;
}
#wrapper{
min-height: 100%;
position: relative;
}
#header{
padding: 10px;
background: yellow;
}
#content{
padding: 10px;
padding-bottom: 80px;
}
#footer{
width: 100%;
height: 80px;
position: absolute;
bottom: 0;
left: 0;
background: blue;
}