I read somewhere on the internet how to set the footer at the bottom by using css bit it was a bit strange set of styles and It wasn't worked with position:absolute divs.
So the fastest solution is to solve it by using javascript. Then I write a javescript method that is executed on load and resize events
please note that in that js method, the resize event doesn't execute anything when executing the code in Internet Explorer, because the performance is quite bad