Sep 19, 2008

Static footers

In one of my current site designs, I have a problem with my footer containing copyright and the questionably ubiquitous “last updated” information. Everything is fine for pages that have enough text to fill at least one screen, but for shorter pages I'd like to have the footer stay more toward the bottom of the window. Why? Because I've used a background image to create a faux column effect, and this image is attached to the body element. When I have a small amount of content, it just looks stupid to have the footer floating there at the middle of the “page”.

I've been wishing I could think of a way to make the footer stick to the bottom of the window, for shorter pages, and to the end of the content, for longer ones. On Boagworld's site, Ed Merritt explains how to accomplish this very thing.

No comments: