CSS Question top and botton div height

Hello all,

I have a scrollable type grid where I can set the height of that to "auto" which makes it 100% really.   I then have a tab control below it in another div that goes way down the bottom of the browser scroll if I have a lot of records in the grid.   How can I set the bottom div to a certain percent or height and then the div above with the grid will just auto expand 100% of that remaining above space?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:

If you set the bottom to height: 70% why can't you set the top to height: 30%?
The requirement you describe does not seem to be logical.  

Put the header footer and grid inside a common wrapper and don't give the grid a height and the expansion will then be data dependent.

Without a link to the page you are just going to get guesses, because what you asking doe not seem to make much sense.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sbornstein2Author Commented:
this worked tx
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.