Olical Olical - 2 months ago 6
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.

Setting

min-height: 100%;
and
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

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