JSFiddle - React, Tailwind, and code Playground
by chovy
HTML
<main>
<aside>
<header>header</header>
<nav>
<ul>
<li>link 1</li>
<li>link 1</li>
<li>link 1</li>
<li>link 1</li>
<li>link 1</li>
<li>link 1</li>
<li>link 1</li>
<li>link 1</li>
</ul>
</nav>
</aside>
<section>
grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column.
grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column.
grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column.
grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column.
grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column.
grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column. grow this to 100% of either column.
grow this to 100% of either column.
</section>
</main>
CSS
body {
margin: 0;
}
main {
min-height: 100vh;
display: flex;
}
aside {
width: 100rem;
border: 1px solid red;
display: flex;
flex-direction: column;
}
nav {
flex-grow: 1;
display: flex;
}
ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
}
section {
flex-grow: 1;
border: 1px solid green;
}
nav li:not(:last-child) {
margin-bottom: 1rem;
}
nav li:last-child {
margin-top: auto;
color: blue;
font-weight: 700;
}