Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Keeping footer at the bottom of the page.


chrishajer
Participant

@chrishajer

Without using JavaScript, there is no way that I know of to know the size of the browser viewport. If you used JavaScript to determine the size, then you could create a size for the div that put your footer to the bottom.

IE has a problem with min-height sometimes.

http://www.google.com/search?q=ie+min-height+hack

I think in general though, you want to set the height of an existing div with min-height. That way, if there’s less content, it uses the minimum height. If there is enough content, the min-height from the CSS is used instead.

Skip to toolbar