Quantcast
Channel: Make div stick to bottom of page - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Make div stick to bottom of page

0
0

So I made a contact page and I want the footer div to be sticking to the bottom of the page not right after the contact form.

But if I put everything to a container div with height:100%; and make footer bottom:0; then the page will be "too long", you have to scroll, etc...

My css so far:

#footer{
    background-color:#fff;
    font:bold 14px;
    color:#1E88E5;
    width:100%;
    height:auto;
    padding:1%;
    border-top:1px solid #1E88E5;
}

Footer is just a normal full width div with some centered text atm.


Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images