Stretching height of page to full screen
Hello,
I am designing a website which uses dynamic height. Some pages though are very small, so the bottom half of the screen is just plain white. How do I make the content area fill the full screen (without making the height fixed)?
My code looks something like this:
CSS:
.overall {
height: 100%;
width: 100%;
}
.content {
width: 900px;
height: 100%;
}
.content #left {
width: 300px;
height: 100%;
}
.content #right {
width: 600px;
height: 100%;
}
HTML:
<div class="overall">
<div class="content">
<div id="left">side navigation here</div>
<div id="right">main content here</div>
</div>
</div>
Try setting the min-height: 100%. That should make the minimum height of your divs 100% and they can go over that (creating a scroll).
Hi,
Try to set position:absolute for the main container, before that the padding and margin should be zero for non scrollable page.
thanks
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks