View Single Post
Old 06-01-2009, 02:19 PM   #22 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by hjalmar View Post
Can you provide some markup for what you are trying to do?

And as far as min/max-width/height: goes, it isn't supported in older browsers so take that into account if doing a scalable/fluid design. Actually i think IE7 treats it as width/height only and IE6 and older ignores it completly.

With some code you'll get a more accurate response :D

Hjalmar
Sure, here's my CSS:

Code:
.body_main {
	background:#FFFFFF;
	margin-top: 200px;
	width: 1024px;
	height: 500px;
	margin: auto;
	padding: 5px 5px 5px 5px;
	border: 1px solid #CCCCCC;
}
Then I create the main DIV container like this:

Code:
<div class="body_main"></div>
So when there is a lot of content, it just flows pass the height that I set at 500px. I don't want the content to be hidden or flow pass the div container, I'd like it to stretch the height as much as it needs to for it's content.

I haven't tried Tanax's tip yet but I will today...
allworknoplay is offline  
Reply With Quote