JSFiddle - React, Tailwind, and code Playground
by chovy
HTML
<html>
<body>
<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...
CSS
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
html, body, main {
height: 100%;
min-height: 100vh;
width: 100vw;
}
main {
display: flex;
justify-content: flex-start;
align-items: flex-start;
}
aside {
width: 100rem;
border: 1px solid red;
align-self: stretch;
flex-grow: 1;
}
section {
flex-grow: 1;
border: 1px solid green;
}
nav ul {
flex-grow: 1;
border: 1px solid blue;
}
nav li {
margin-bottom: 1rem;
}
nav li:last-child {
margin-top: auto;
margin-bottom: 0;
color: blue;
font-weight: 700;
}