I have a page with two divon it that should fill the entire screen.
Both have a width = 100%
The top height should be determined by its content (the minimum possible height corresponding to all content) and never show scrollbars.
The bottom should fill the rest of the screen. However, if its contents do not match the div, it should display a vertical scroll bar.
Like this:
<div id="header">This block should not display the scrollbars</div>
<div id="content">This block should fill the rest of the screen and show the vertical scrollbar if the content does not fit</div>
How to do this with CSS?
Update:
I am looking for a solution that will not require me to set a fixed height for the top div.
Is it possible?
Eagle source
share