body { font-family:sans; } #ebusgraph { position: absolute; height: calc(100% - 160px); top: 2px; left: 10px; right: 45px; } #legend { position: absolute; height: 150px; overflow-y: scroll; left: 40px; top: 10px; background: rgba(240,240,240,0.55); } #legend select { width: 160px; } #overview { position: absolute; top: calc(100% - 150px); height: 150px; left: 10px; right: 10px; }