I am attempting to create a simplistic layout using HTML/CSS, as depicted in the wireframe below:
/------------------------------------------\
| |
| header div |
| |
|------------------------------------------|
| |S |
| main div |C |
| |R |
| |O |
| |L |
| |L |
| | |
| |B |
| |A |
| |R |
\------------------------------------------/
The design consists of a 200 pixel high "header" DIV that spans the full width of the viewport horizontally. Below it, there is the "main" DIV intended to occupy all remaining empty space both horizontally and vertically. The scrolling feature is set to "auto" in case of content overflow.
The challenge lies in making sure the "main" DIV fills the rest of the available space without the use of JavaScript. I have found difficulties with percentage heights while ensuring the visibility of the scrollbar.
At this stage, I am open to considering tables for this basic layout element if no non-JavaScript solution exists. Semantic structure is not a priority in this case.
How should I proceed with implementing this? An example demonstration would be greatly appreciated!