Jump to content

div height


chiprivers

Recommended Posts

Being new to using CSS for page layout, I am trying to get used to the anomolies across different browsers, so any assistance would be appreciated.

I am trying to layout my page template in <DIV>'s and one <DIV> will hold the main page display area.  I want this <DIV> to have a minimum height set so that it always fills to the bottom of the screen.  However, I am getting stuck having this increase in size when there is more content.  When I display the page in IE7, the <DIV> expands in height to allow for any additional content, but when I display the page in Firefox, the content overflows the bottom of the <DIV>.  Is there a way I can ensure the layout works across different browsers?
Link to comment
Share on other sites

If you want to set a div to minimal height, for its default hight when the contents is less than height of actually div then you'll want to use min-height

However min-height is not supported in IE6 or below and perhaps some other browsers, IE7 Now handles this CSS attribute fine. I'm not sure how to get this to work in IE6 (or below) perhaps there's a CSS hack available.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.