• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

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?
1 Solution
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.

sbornstein2Author Commented:
this worked tx
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now