Check out my codepen showcasing the current issue I'm dealing with: https://codepen.io/marcdaframe/pen/qeBWNd
<div>
123 abc
<div class="container">
<div class="wrapper">
<div>One</div>
<div>Two</div>
<div>Three</div>
<div>Four</div>
<div>Five</div>
<div>Six</div>
<div>Seven</div>
<div>Eight</div>
</div></div>
Hello World
</div>
* {box-sizing: border-box;}
.container{
height: 25%;
overflow-y: scroll;
}
.wrapper {
border: 2px solid #f76707;
border-radius: 5px;
background-color: #fff4e6;
}
.wrapper > div {
border: 2px solid #ffa94d;
border-radius: 5px;
background-color: #ffd8a8;
padding: 1em;
color: #d9480f;
}
.wrapper {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
grid-auto-rows: 100px 200px;
}
I am facing an issue where a container's height is defined in percents (it works with absolute values but not vh) and it contains a grid that should be 25% tall with scrolling for overflow, yet the grid contents do not respect this setup.