Jump to content

Why isn't the container div adapting his height his content?


pr0g53r
 Share

Recommended Posts

Hi,I've got a big problem while coding this design:http://file1.npage.de/007843/04/html/index2.htmlThe div with the ID "container" (background picture) rests at a height of 980px, wich is indicated only as min-height in the CSS, even if the content is heigher than 980px (as seen on the bottom of the page)It would be great if someone could help me. I've already tested to set the min-height to 100% to stretch the container over the whole pageheight, but it hasn't worked. I think that the problem is that html and body aren't stretched over the whole page. I've set their height to 100% but they don't seem to cover the whole page. why?

Link to comment
Share on other sites

Hi,I've got a big problem while coding this design:http://file1.npage.de/007843/04/html/index2.htmlThe div with the ID "container" (background picture) rests at a height of 980px, wich is indicated only as min-height in the CSS, even if the content is heigher than 980px (as seen on the bottom of the page)It would be great if someone could help me. I've already tested to set the min-height to 100% to stretch the container over the whole pageheight, but it hasn't worked. I think that the problem is that html and body aren't stretched over the whole page. I've set their height to 100% but they don't seem to cover the whole page. why?
I am not sure what the problem is. It looks OK to me in google chrome and IE.The background image is no-repat so it ends near the bottom of the page about 50 px from the bottom of the main body.Perhaps you need to describe the problem more clearly and what browser(s) you are using.Guy
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...