I'm not new to CSS, but this is a problem for me, and I cannot solve it. I need to build a layout as shown below:
Layout http://img121.imageshack.us/img121/2153/layoutsample.jpg
Divs, which are below and above, have fixed heights. The one in the center should be at a height PAGE HEIGH - DIV 1 HEIGHT - DIV 3 HEIGHT or less in some cases.
He also had to set this size, because I predict that sometimes it will be larger than him, and then he will need a scroll bar.
I will accept the case where DIV2 will be smaller, but not too large to fit the page size with DIV1 and DIV3.
Any solutions would be good, not only using CSS, but if you have an idea, you can drop some Javascript too ... I would be grateful for any solution .. not even completely correct :)
source
share