I am trying to achieve a layout using flex that fills the entire height of the screen.
https://i.sstatic.net/s1RA5.png
My goal is to have a red background that scrolls based on the content inside. If there is more content, I want it to maintain the same size and just add a scroll bar. Is this possible with flex?
This is my current setup:
<style>
.content {
display: flex;
.content-left {
display: flex;
width: 512px;
padding-right: 24px;
flex-direction: column;
padding-top: 56px;
.content-header {
margin-bottom: 24px;
small {
display: flex;
margin-bottom: 8px;
}
}
}
.content-right {
display: flex;
width: 928px;
}
</style>
<header>TEST<header>
<div class="container">
<section class="content">
<aside class="content-left">
<div class="content-header">
<small></small>
<h1>
TITLE
</h1>
</div>
<section class="content-body">
</section>
<section class="content-footer">
</section>
</aside>
<div class="content-right">
</div>
</section>
</div>