How can I pin a div in my sidebar column to the bottom?

Posted by vg1890 on Stack Overflow See other posts from Stack Overflow or by vg1890
Published on 2010-05-21T01:43:31Z Indexed on 2010/05/21 1:50 UTC
Read the original article Hit count: 276

Filed under:
|

I have a simple two column layout with a footer at the bottom. When the content in the sidebar is taller than the content in the main column, everything looks great. But when the height of the main column is greater than the sidebar, I need the sidebar to grow to the same height as the main column and for the last <div> in the sidebar to be pinned to the very bottom.

Here's my sample code:

http://jsfiddle.net/mqnML/1/

© Stack Overflow or respective owner

Related posts about css

Related posts about layout