The first column is set to minmax(200px, 400px)
. I understand it's going to try and always be 400px 'when it can' and when it has to shrink the most it can shrink to is 200px.
When I start making the viewport extremely small it does shrink under 400px. My question is what determines when it shrinks under 400px?
.grid-container {
display: grid;
grid-template-columns: minmax(200px, 400px) 1fr 1fr;
}
.grid-container > div:nth-child(1) {
background-color: red;
}
.grid-container > div:nth-child(2) {
background-color: orchid;
}
.grid-container > div:nth-child(3) {
background-color: yellowgreen;
}
<div class="grid-container">
<div>I am column 1</div>
<div>I am column 2</div>
<div>I am column 3</div>
</div>