I have an image of a fixed aspect ratio, but of responsive format, as the first item in a two column flex row, as follows:
<div class="d-flex flex-column flex-md-row">
<!-- main photo -->
<img class="" src="http://lorempixel.com/300/160" srcset="http://lorempixel.com/400/225 400w,
http://lorempixel.com/475/267 475w,
http://lorempixel.com/540/304 540w,
http://lorempixel.com/600/338 600w,
http://lorempixel.com/800/450 800w,
http://lorempixel.com/950/534 950w,
http://lorempixel.com/1080/608 1080w,
http://lorempixel.com/1200/675 1200w" sizes="(min-width: 1200px) 475px, (min-width: 992px) 400px, (min-width: 768px) 300px, (min-width: 576px) 540px, 100vw">
<!-- details -->
<div class="p-3 d-flex flex-column justify-content-center w-100">
<div class="py-2 scroll-overflow">
A LONG, LONG, LONG TEXT GOES HERE!
</div>
</div>
How can I have the long, long text above scroll into the div
as soon as the "convenient" height is reached, that being the height of the neighbouring image. I cannot set a fixed height to the div
since, the image being responsive, its height changes when the user moves the window.