Jump to content

Div height 100% won't fill the document?


Recommended Posts

Guest liquidx
Posted

See reproduction of the problem: http://www.coldink.net/temp/test.html (scroll down a bit to see the issue)

 

 

When I set the html, body, and a div to be height 100% they are only 100% of the viewable area, they do not encompass the content within them.

 

How can I fix this?

 

The source is extremely simple, what am I doing wrong?

Posted

You will need to use min-height: 100%; for standard compliant browsers to allow the div to expand. Then because IE6 doesn't understand min-height but treats height as min-height, feed it height: 100%; using a conditional comment or hack.

 


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...