Here's an issue I'm facing: when the first container has content, the other two containers without content end up being the same height as the first one:
Check out this JSFiddle link for reference
.grid {
padding: 5px;
background: gray;
display: grid;
grid-template-columns: auto auto auto;
}
.todo-column {
min-height: 150px;
margin: 0 auto;
width: 90%;
background: cyan;
text-align: center;
}
.todo-title {
color: white;
font-size: 175%;
padding: 5px;
border-bottom: 5px dotted black;
}
<div class="grid">
<div class="todo-column">
<h1 class="todo-title">Aloittamatta</h1>
<h1>foo</h1>
...
</div>
<div class="todo-column">
<h1 class="todo-title">Työn alla</h1>
</div>
<div class="todo-column">
<h1 class="todo-title">Valmis</h1>
</div>
</div>
How do I ensure that all three containers have the same default height, but adjust dynamically when one of them has content while keeping the others at a minimum height?