Is it possible to create a CSS grid with equal row heights that fill the visible height of the container even if there are more grid items than can fit? I have attached an image for reference on how it should work. I have tried using flexbox in a horizontal layout, but I don't think it's achieving the desired result.
https://i.sstatic.net/iCm9S.png
.container {
display: grid;
background: white;
grid-template-rows: auto;
}
.row{
font-size: 3rem;
border: solid black 1px;
}
<div class="container">
<div class="row">
row1
</div>
.
.
.
(additional rows)
<div class="row">
row8
</div>
</div>
The goal is for the rows to always fill the visible height of the container, even if there are more than a predetermined number of rows like say, 4.