How do I keep website footer on bottom of the window?

Posted by taw on Stack Overflow See other posts from Stack Overflow or by taw
Published on 2010-04-11T23:51:13Z Indexed on 2010/04/11 23:53 UTC
Read the original article Hit count: 135

Filed under:

Coding footer naively, if there's not enough content, then there will be empty space between footer and bottom of page. I would like to get rid of this and move footer to the bottom of the window.

On the other hand when there is more content, I want the content to push the footer down (so position: fixed; bottom: 0; won't do).

How do I achieve this?

© Stack Overflow or respective owner

Related posts about css