By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,429 Members | 1,149 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,429 IT Pros & Developers. It's quick & easy.

Dynamically Sizing a Content Div

P: 1
I am working on a CSS/HTML layout and have run into a problem. What I would like to do is have a dynamically sized div that holds the content so the footer is a fixed size that lines up with the bottom of the browser if there is not enough content to fill the page.

I thought of using min-height (plus requisite hacks for IE compatibility), but cannot figure out how to get the div to dynamically size. Could anyone help with this?

I realize the explanation may not be clear, so I will include some diagrams to help.

What I want to happen
What happens currently when the content is too short

Thanks in advance!
Oct 26 '06 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 1,208
why not use height="100%"
Oct 26 '06 #2

P: 50
Expand|Select|Wrap|Line Numbers
  1. position:absolute;

Also helpful.
Oct 28 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.