homepage Welcome to WebmasterWorld Guest from 54.211.50.5
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
Css content streching pass main container
How can I make it so it automatically stretches vertically with content?
Walley




msg:3905110
 6:25 pm on May 1, 2009 (gmt 0)

What can I do to allow the id=maincontainer to stretch vertically along with the content in id=content and shrink back to a set height if the content doesn't expand pass the height?

I've been using overflow, but don't want to use it anymore. The id=content can stretch pass the id=footer if there is too much content in id=content.


<div id="maincontainer">
<div id="header">
</div
<div id="content">
Content here will stretch pass footer and maincontainer if there is too much content.
</div>
<div id="footer">
</div
</div>

[edited by: Walley at 6:27 pm (utc) on May 1, 2009]

 

nigassma




msg:3905119
 6:45 pm on May 1, 2009 (gmt 0)

I would say give #maincontainer a min-height of whatever you want. Don't give #content a set height at all.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved