Sorry if this is a simple question. I want to have a nav bar of fixed height that sits at the top of the page. Then underneath it I want to have a map that takes up 100% of the remaining height and 100% of the remaining width.
The code I tried was this:
<div class="container">
<div class="nav">
nav
</div>
<div class="main" id='map'>
</div>
</div>
CSS
#map {
top: 0; left: 0; position: absolute; width: 100%; height: 100%
}
.nav {
background: hotpink;
height: 80px;
}
This doesn't give the desired result as even though the map is full page, the nav bar is below it, and also the map should only take up 100% of the reamining height after the nav bar.