I would like the second column, which shall contain lots of text, to overflow vertically at the exact size of the left column which is an img tag.
This img changes size according to your window size (responsive), I am using bootstrap grid system.
<div class="row">
<div class="col-7 col-12-sm">
<div style="position:relative" class="col-9">
<img src="" alt="">
</div>
</div>
<div class="col-5 col-12-sm">
<div class="mytext">
Lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry's standar
dummy text ever since the 1500s, when an unknown printer took a galley
</div>
</div>
</div>
I tried to add this css to my right column
.mytext {
overflow-y: scroll;
height: 500px;
}
but obviously, fixing px as height does not work as intended when I resize my browser.
issue I have right now with short size
when I resize down with fixed height
is there a way using css to do this easily ?