Jump to content

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


pr0g53r

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...