Ian McNally

Get that div all the way down

May 20, 2014

Say your want a div (i.e., .container) to extend all the way down the page, until about 20px before the bottom. Check it out:

.container {
    position: absolute;
    top: $your_top_value;
    bottom: 20px;

Demo here.

Ian McNally

Hey, I'm Ian. I build websites and write about what I learn as I go. Follow me on Twitter.