I have the following css
html,body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
.one {
width: 100%;
height: 100%;
display: grid;
grid-template-columns: minmax(0, 1fr) 20%;
}
.two {
background: red;
}
.three {
background: blue;
display: grid;
grid-template-rows: 64px minmax(0, 1fr) 58px;
}
.five {
background: orange;
height: 800px;
overflow-y: auto;
}
.four {
background: green;
}
.size {
background: blue;
}
<div class="one">
<div class="two">
</div>
<div class="three">
<div class="four"></div>
<div class="five"></div>
<div class="six"></div>
</div>
</div>
Now as you can see from https://codepen.io/dubcanada/pen/ZEbYBex the side bar if five is taller then three - 122px (64 + 58px) it expands the height of three to accommodate. I want it to add a scroll bar and not expand the height.
I've tried the min-height: 0;, max-height: 0; min-width: 0; max-width: 0;
tricks and everything I can think of I am not sure how to get this fixed.
Any ideas?