JSFiddle - React, Tailwind, and code Playground
HTML
<div id="interface">
<div id="toolbar">
Toolbar<br/>Toolbar
</div>
<div id="main">
<div id="main-left">
This should take the full vertical space remaining after the toolbar,
and half the horizontal space.
</div>
<div id="main-right">
<div id="context">
This should take half and half the remaining space after the toolbar.
</div>
<div id="messages">
This should take half and half the remaining space after the toolbar.
</div>
</div>
</div>
</div>
CSS
html, body {
height: 100%;
margin: 0;
min-height: 100%;
}
#interface {
height: 100%;
}
#toolbar {
background-color: pink;
float: left;
width: 100%;
}
#main {
background-color: yellow;
height: 100%;
width: 100%;
}
#main-left {
background-color: red;
float: left;
width: 50%;
}
#main-right {
background-color: blue;
float: left;
width: 50%;
}
#context {
background-color: green;
float: left;
height: 50%;
}
#messages {
background-color: purple;
float: left;
height: 50%;
}