CSS Floating Footer

Jon picture Jon · Jan 12, 2009 · Viewed 17.6k times · Source

I want to make a footer that stays at the bottom of the viewable window UNLESS it butts up against the content when you resize the window smaller.

I tried... bottom:0; position:absolute; ...but the footer gets in the way when the window is smaller.

Answer

roryf picture roryf · Jan 12, 2009

I believe this will do what you want: CSS layout: 100% height with header and footer. I've used it on a site and it can be tricky to implement depending on the complexity of your existing layout.