Jump to content

[SOLVED] Min-Height: X% Doesn't Work?


FlyingIsFun1217

Recommended Posts

Hey!

 

I've got a div that is supposed to be filling the users browser screen, until something comes to expand it. So what I have is:

 

#mainContent
{
width:				100%;
height:				auto;
min-height:			        70%;
background:			#D2D6F5;
}

 

The rest of the divs that are stacked by it, add up to 30%, so I figured as long as the min-height is 70%, it'll fill it up (until it needs to grow). Thing is, obviously it isn't working (else I wouldn't be here!), I'm assuming because of the value. Do the values for min-height need to be in pixels, not percentages? If so, is there any way that I can get it to expand to 70% of the browser real estate?

 

Thanks!

FlyingIsFun1217

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.