How can I position the divs as described below? I want the left div to take up all available space except for 400 px which is designated for the div resource. Currently, the two divs are overlapping. If I set the width of both divs to 400px, there is a large white space on higher resolutions. What is the most effective solution for this?
<div id="left" style="position:absolute;top:0px;left:0px;width:calc(100%-400px);height:820px;background:#ececec;">
<div id="map" style="position:absolute;top:0px;left:0px;width:calc(100%-400px);height:400px">Map goes here.</div>
<div id="asset" style="position:absolute;top:400px;left:0px;width:calc(100%-400px);height:420px;background:#ececec;">
</div>
</div>
<div id="resource" style="position:absolute;top:0px;width:400px;left:calc(100%-400px);height:820px;background:#e6e6e6;">
<table id="resourceHeading">
</table>
</div>