Some of my webpages are short. In those pages, the footer might end up in the middle of the window and below the footer is whitespace (in white). That looks ugly. I\'d like
Considering that all your footer is inside the html tag, this is an easy solution using jQuery.
JS:
$(document).ready(function(){ $('body').css('padding-bottom', $('footer').height()+'px'); });
CSS:
footer { position:absolute; bottom:0; }