You can probably use position: fixed
to achieve this.
.footer {
position: fixed;
bottom: 0;
}
With this you will need to offset the bottom of the page so would suggest adding a padding-bottom
to .main
that is the height of the footer.
.main {
padding-bottom: 30px /*whatever the height of your footer is*/
}