SRD
June 30th, 2007, 03:06 AM
Okay, so I am in the process of switching my site's layout over from tables to div tags and I've run into a problem. I want the pages of my site to always stretch to 100% of the browser's height, and overflow past that if necessary. For some reason, when I set the div height to 100% and the page overflows, what I get in Firefox is the content with the border of the div cutting through the middle. When I do not declare a height attribute, the content overflows perfectly, however, on pages where the content is much shorter, the page will of course not stretch to 100%. After researching for similar problems, it appears to me that some sort of css is needed in the head of the document (something about declaring the parent/body as 100%, also some kind of minheight hack?), but even after trying several things, nothing seems to work.
Also, this is probably very obvious, but the div's seem to be stretching to the height of the browser, even though they are under a banner, so the entire height of the page is actually 100% of the browser height + banner height (Something I also need to fix).
Also, this is probably very obvious, but the div's seem to be stretching to the height of the browser, even though they are under a banner, so the entire height of the page is actually 100% of the browser height + banner height (Something I also need to fix).