Take the 2-minute tour ×

How do I get the div (the blue box) to fill out the whole page? I have the body tag set to height:100%, but this doesn't seem to matter.

See http://jsfiddle.net/rVyrX/1/

share|improve this question

2 Answers 2


share|improve this answer

Every containing element must have it's height set to 100% along with the element that you want sized to 100%. This assumes that the target element (here, the blue box div) is not positioned absolutely, in which case you can simply set both its "top" and "bottom" values to zero.

share|improve this answer

Your Answer


