How can I make the height of the first div equal to the dynamic height of the second div, when the second div contains a lot of dynamic data with an unpredictable height?
<div style="width: 100%;">
<div class="first">
Left Div
</div>
<div class="second">
<h5> hello </h5>
<h5> hello </h5>
<h5> hello </h5>
</div>
</div>
.first{
width: 50%;
float: left;
background: yellow;
}
.second{
margin-left: 50%;
background: grey;
}