常に画面最下部に要素を固定するCSS

position: fixed;bottom: 0; を使えばOK。

#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}

codepen.io