I am generally familiar with the technique of flushing a footer using css and this following approach.
But I am having some trouble getting this approach to work for Twitter bootstrap, most likely due to the fact that Twitter bootstrap is responsive in nature. Using Twitter bootstrap I am not able to get the footer to flush to the bottom of the page using the approach described in the above blog post.
It looks like the
height:100%
'chain' is being broken atdiv#main
. Try addingheight:100%
to it and that may get you closer to your goal.HenryW's answer is good, though I needed a few tweaks to get it working how I wanted. In particular the following also handles:
Here's what worked for me with those tweaks:
HTML:
CSS:
JavaScript: