If you set the footer to position: fixed, it will appear above your content, even if the page is longer than the window.
If what you want is only to keep the footer at the bottom, even when the content is really short, there's that answer : Sticky footer on Stack overflow
That way, your footer will stay at the bottom of the page OR at the end of the content.