Lester Peabody Lester Peabody - 10 days ago 6
CSS Question

CSS auto height and sticky footer

I'm trying to wrap my head around CSS positioning guidelines. I'm trying to figure out how to make a sticky footer but have it stop being sticky when the main content area can no longer be condensed. An example of what I'm talking about can be found here http://ryanfait.com/sticky-footer/. Can someone explain to me why the footer stops being sticky and particularly what CSS properties cause this to occur? For me, as I look at the CSS it looks like the footer should just stay sticky to the bottom of the browser window always, but this isn't the case here. Why?

Thanks for the help.

Answer

give this one a try. http://www.cssstickyfooter.com/

its similar to Ryans one, but, from memory, I think I've had better luck with this (although both are very similar)

Comments