you must set the same height for both div then make overflow: auto
and add another div inside them
<div class="A col-md-9">
<div>
content
</div>
</div>
<div class="B col-md-3">
<div>
feedback content
</div>
</div>
css:
.A {
height: 50px;
overflow: auto;
}
.B {
height: 50px;
overflow: auto;
}
Update: if you want to have height based on A div you need to get A div height first and set that height to B div
const height = document.getElementsByClassName('A')[0].offsetHeight;
document.getElementsByClassName('B')[0].style.height = height + 'px';
and then you do not need to add height in A and B class
.A, .B {
overflow: auto;
}
know you set height on B div base on A div content if B div has more content it shows in scroll view mode and instead of expanding its height.
this works for me