I am working on a grid layout with three columns where the height adjusts to accommodate all text content.
.main .contentWrapper {
height:60%;
margin-top:5%;
display:grid;
grid-template-columns:1fr 1fr 1fr;
grid-gap:10px;
/*grid-template-rows: auto;*/
height:auto;
}
.main .contentWrapper .box .boxText {
padding:15px;
height:25%;
text-align:center;
margin:0;
}
img {
object-fit:cover;
width:100%;
height:400px;
margin:0;
}
I am looking for a solution to make each box resize based on its own text length, instead of all boxes having the same height. Currently, the first two columns adjust their height based on the tallest column which is in the third column.