How to stick text to the bottom of the page?

You might want to put the absolutely aligned div in a relatively aligned container – this way it will still be contained into the container rather than the browser window.

<div style="position: relative;background-color: blue; width: 600px; height: 800px;">    

    <div style="position: absolute; bottom: 5px; background-color: green">
    TEST (C) 2010

Leave a Comment