Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Container Height Unknown

Started 1 month, 1 week ago by robburne
Hi guys, I have a small problem which is driving me crazy. I have a main container with two containers inside named left and right. I want a border on the main container, but i do not know the height of the main container as this will depend on the content in 'left' and 'right'. So what should I set the height of the main container to? I've tried 100% but this does not ...
Site: Dev Shed Forums - Open Source web development  Dev Shed Forums - Open Source web development - site profile
Forum: CSS Help  CSS Help - forum profile
Total authors: 4 authors
Total thread posts: 8 posts
Thread activity: no new posts during last week
Domain info for: devshed.com

Other posts in this thread:

DonR replied 1 month, 1 week ago
try adding overflow:hidden; to your maincontainer DIV.

cranium replied 1 month, 1 week ago
Shouldn't matter. If you are placing a border on the main container with css the border, like container itself, will expand and collapse with the amount of content held within. If you want to do a border between columns than that is faux columns (do a google search).

robburne replied 1 month, 1 week ago
Thanks for the replies. I got it working by applying the following to the main container: height:-1%; overflow:hidden; Cranium, I don't think your solution is correct. It may have worked in older version of IE, but using version 8 you'll see that you have to specify a height for the main container or else it will not appear. Once you specify a height the container then ...

robburne replied 1 month, 1 week ago
So it seems the problem is related to the body height not being set to a fixed amount. Without specifying a fixed height it is impossible to add margin or pad to the bottom of the page. This is plain ridiculous as often the length of the page will vary! Am I going mad? Rob.

kk5st replied 1 month, 1 week ago
Post the address of your page, or a minimal test case that exhibits the issue. Without some code, we can only guess. cheers, gary

robburne replied 1 month, 1 week ago
Thanks for the reply. As suggested I have stripped back the page to the a minimum so it is easy to read: http://www.robburne.co.uk/test/index2.php The CSS sheet can be seen here Any ideas why there is not a gap at the bottom of the page? Thanks in advance, Rob.

kk5st replied 1 month, 1 week ago
You have over/mis-used floats. Simple fix? Make the container {overflow: hidden;}. See Enclosing float elements for an explanation. cheers, gary

 

Top contributing authors

Name
Posts
robburne
4
user's latest post:
Container Height Unknown
Published (2009-11-07 05:04:00)
Thanks for the reply. As suggested I have stripped back the page to the a minimum so it is easy to read: http://www.robburne.co.uk/test/index2.php The CSS sheet can be seen here Any ideas why there is not a gap at the bottom of the page? Thanks in advance, Rob.
kk5st
2
user's latest post:
Container Height Unknown
Published (2009-11-07 12:05:00)
You have over/mis-used floats. Simple fix? Make the container {overflow: hidden;}. See Enclosing float elements for an explanation. cheers, gary
cranium
1
user's latest post:
Container Height Unknown
Published (2009-11-06 17:26:00)
Shouldn't matter. If you are placing a border on the main container with css the border, like container itself, will expand and collapse with the amount of content held within. If you want to do a border between columns than that is faux columns (do a google search).
DonR
1
user's latest post:
Container Height Unknown
Published (2009-11-06 16:30:00)
try adding overflow:hidden; to your maincontainer DIV.

Related threads on "Dev Shed Forums - Open Source web development":

Related threads on other sites:

Thread profile page for "Container Height Unknown" on http://www.devshed.com. This report page is a snippet summary view from a single thread "Container Height Unknown", located on the Message Board at http://www.devshed.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity