html, body { height: 100%; } #map { height: calc(100% - 160px); } #calendar { z-index: 100; width: 200px; height: calc(100% - 240px); position: absolute; top: 60px; right: 10px; border: 3px #888 solid; background: white; font-size: 12px; line-height: 18px; } #calendar #controls { position: absolute; top: 0; padding: 3px; background: white; } #calendar .scroll { overflow: scroll; height: 100%; } table.calendar { width: 100%; margin-bottom: 10px; } .calendar th, .calendar td { text-align: center; width: 14%; } .calendar td a { display: block; text-decoration: none; color: black; } .calendar td a:hover, .calendar td a.selected:hover { background: #999; color: white; } .calendar td a.selected { background: #6699ff; } #battery-chart, #events-chart { width: 100%; } /* Move the map zoom controls away from the Compass logo */ .leaflet-top .leaflet-control-zoom { margin-top: 60px; margin-left: 26px; }