JSFiddle - React, Tailwind, and code Playground
HTML
<div class="layout">
<header>header</header>
<main>
<div class="container">
<div class="yet-one-wrapper">
<div class="i-need-stretch">
Меня нужно расстянуть на 100% высоты main.
</div>
</div>
</div>
</main>
<footer>footer ©</footer>
</div>
CSS
.layout {
display: flex;
flex-direction: column;
height: 100vh;
}
.layout main {
flex-grow: 1;
}
.container {
max-width: 80%;
margin: auto;
height: 100%;
}
.yet-one-wrapper {
height: 100%;
}
.i-need-stretch {
display: flex;
align-items: center;
justify-content: center;
border: 1px solid;
height: 100%;
}