I'm creating a complex layout in CSS and have to have the following:
__________________________________________
| | |
| | filters |
| |___________________________________|
| | |
| | Toolbar |
| |___________________________________|
| nav | |
| | |
| | |
| | Content (scroll) |
| | |
| | |
|_____|___________________________________|
The nav is static, so it's always shown. The content area is scrollable in itself. The toolbar is also always there. The filters section however should be dynamic in that if it is missing, then then toolbar/content should move upwards and take up the space that the filters once occupied.
The content area is position:absolute; with overflow:auto, and looks much like Google Reader. The problem is that I need to do right:0; top:0; left:0; and bottom:0 in order to get the scrolling to work correctly.
Any idea how I can achieve a scrolling content area that doesn't display over the top of the toolbar/filters yet if the filters section is removed then everything moves up automatically without me having to specify extra CSS to compensate?
Cheers
EDIT: Okay, to make it easier, can someone tell me how to achieve the layout of Google Reader using CSS, where the content area automatically moves down if you introduce new tools on the toolbar that cause the toolbar height to adjust?