html,
body {
height: 100%;
}
.site-main {
height: calc(100% - 72px);
display: flex;
}
.site-main > div {
min-width: 85%;
height: 100%;
}
.site-main > aside {
min-width: 15%;
height: 100%;
background-color: $darkest-blue-grey;
}
<header>
<h1>Title</h1>
</header>
<div class="site-main">
<div></div>
<aside></aside>
</div>
I have the header at a fixed height of 72px.
I have given .site-main div a width of 85%.
I have given .site-main aside a width of 15%.
What I want is for .site-main div and .site-main aside to be side by side, and have .site-main fill the remaining white space after the header.
And have .site-main div and .site-main aside fill .site-main's height.
Any help would be greatly appreciated!