JSFiddle - React, Tailwind, and code Playground
by Qwerty_Wasd
HTML
<div class="general">
<div class="right">
<div class="top"></div>
<div class="bottom">
<textarea name="text" id="text"></textarea>
</div>
</div>
</div>
CSS
html, body {
height: 100%;
overflow: hidden;
}
body {
margin: 0;
padding: 0;
border: 0;
outline: 0;
}
*, *:after, *:before {
box-sizing: border-box;
}
.general {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
align-items: stretch;
height: 100%;
}
.right {
display: flex;
flex-direction: column;
background-color: #ccc;
flex-grow: 1;
}
.top {
height: 30px;
background-color: #d0d;
}
.bottom {
height: 100%;
flex-grow: 1;
}
textarea {
width: 100%;
height: 100%;
}