I am trying to make a 2 column layout. The left column should automatically adjust its height to the right column. So both columns have the same height.
My source code looks like this:
.row {clear: both; max-width: 1240px; margin: 0 auto;}
.col-6 {width: 50%; float: left; position: relative;}
.space-default {padding: 200px 0;}
<div class="row">
<div class="col-6">
<div class="space-default">
left column
</div>
</div>
<div class="col-6">
<div class="space-default">
right column
</div>
</div>
</div>
Now as I said, I would like to adjust the height of the left column so it is always the same height as the right one. With the top and bottom padding.
I am struggling with this and can't find a proper way to solve my problem.