JSFiddle - React, Tailwind, and code Playground
HTML
<main>
<section>
<article class="first">I fill out half of the available space!</article>
<article class="second">I fill out half of the available space! <strong>Be aware that contents of article and aside may be changed!</strong></article>
<aside>I'm 50px width!</aside>
</section>
</main>
CSS
section {
display: flex;
padding: 25px;
background: #eee;
overflow: hidden;
}
article, aside {
padding: 5px;
}
article {
flex: 1 0;
}
aside {
flex: 0 0 50px;
background: #ece;
}
.first {
background: #cee;
}
.second {
background: #eec;
}
* {
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}