Tim
Tim

Reputation: 2649

overflow:hidden not working on my div

I'm having trouble trying to get the footer at the bottom of my page to stay at the bottom of the page without the page content going over it. I'd want the page content to push the footer down.

I though overflow: hidden would work, but it doesn't.

The problem.

Upvotes: 0

Views: 758

Answers (2)

Mahesh
Mahesh

Reputation: 11

Place the footer at the bottom of the container by using this CSS code:

position: absolute;
bottom: -5px;
left: 0;
width: 100%;

Upvotes: 1

tlunter
tlunter

Reputation: 724

Set the height for the content to a min-height instead.

Upvotes: 1

Related Questions