JSFiddle - React, Tailwind, and code Playground
HTML
<div class="wrapper">
<div class="header"></div>
<div class="main">
<div class="left"></div>
<div class="center">
<div class="top"></div>
<div class="bottom"></div>
</div>
<div class="right"></div>
</div>
</div>
CSS
html, body {
height: 100%;
margin: 0;
}
.wrapper {
width: 100%; height: 100%;
display: flex;
flex-direction: column;
}
.header {background: blue;}
.left {background: purple;}
.right {background: green;}
.top {background: cyan;}
.bottom {background: red;}
.header {
height: 30px;
}
.main {
background: black;
flex: auto;
display: flex;
}
.left, .right {
width: 100px;
}
.center {
flex: auto;
display: flex;
flex-direction: column;
}
.top, .bottom {
flex: auto;
}