Olical Olical - 1 year ago 63
CSS Question

Full height div not stretching

Hi there I have been working on a website for quite some time now, improving code etc. I have just noticed that, on smaller screens, the height of the white background does not stretch past all of the content.


min-height: 100%;
height: 100%;
do not seem to solve it, do you think this could be down to the fact that a lot of the content is floating?

Any suggestions would be much appreciated.

Answer Source

On your div.container, remove height: 100% and add overflow: auto.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download