I have two divs next to each other while floating right. I want these divs to remain the same height even when one div changes height. I believe i can use display: flex for this, however when i use this my float gets removed and the container gets placed top left.
.flex {
min-height: 300px;
margin: 0 auto;
display: -webkit-flex;
display: flex;
}
.container-B {
flex: 1;
}
.float-right {
float: right;
}
<div class="row flex">
<div class="float-right col-md-5 container-B">
<div>Content</div>
<div class="float-right col-md-5 container-B">
<div>Content</div>
</div>
</div>