I am working on a Google Maps application that takes up the majority of the screen. However, I need to reserve a strip at the top for a menu bar. How can I ensure that the map div fills the remaining vertical space without being pushed past the bottom of the page when using height: 100%
? I want to achieve a layout like this:
+--------------------------------+
| Menu Bar (n units tall) |
|================================|
| ^ |
| | |
| div |
| (Height: 100%-n units) |
| | |
| v |
+--------------------------------+