JSFiddle - React, Tailwind, and code Playground
by sqren
HTML
<div class="spacing">
hey
</div>
<div class="container">
<div class="left">
Left
hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>
hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>
</div>
<div class="right">
<strong>Right</strong>
hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>hey<br>
</div>
</div>
CSS
html, body {
height: 100%;
margin: 0;
padding: 0;
}
.spacing {
height: 66px;
background-color: blue;
}
.container {
background-color: red;
height: calc(100% - 66px);
position: relative;
}
.left {
background-color: purple;
width: calc(100% - 320px);
position: absolute;
top: 0;
bottom: 0;
overflow: auto;
}
.right {
background-color: green;
width: 320px;
position: absolute;
top: 0;
bottom: 0;
right: 0;
overflow: auto;
}