Guest adzb Posted September 1, 2009 Share Posted September 1, 2009 Hi, I've got a problem when I use: body, html {height: 100%;min-height: 100%;}<div style="height 100%;"></div> The div will expand 100% of the browser but however when I enter a lot of content and overflow the browsers screen the div doesn't expand. This is a great problem I have had a few times. What ever i do I just cant get it to follow the content. :)I have been doing html and css for a while now but it's the one problem I always have. In the end I just resort to using a table as a wrapper as it works perfectly but I like creating full div sites. Link to comment Share on other sites More sharing options...
Ingolme Posted September 1, 2009 Share Posted September 1, 2009 Rather than height, give the <div> element min-height. Assigning a height means that you're not planning for the <div> element to change size. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.