IS there a way to make a column height dependant of the content within it. I am currently using flexbox but both columns have the same height, the height of the column with the most content. I want the smallest column to only go down to the height if its content.
<div class="flex">
<div class="col1">
content
</div>
<div class="col2">
content<br>
content<br>
content<br>
content<br>
</div>
</div>
.flex{
display:flex;
}