The image in the left column needs to be responsive based on the height of the content in the adjacent column.
In this screenshot here:
the image takes up too much vertical space.
Just using the img-fluid class on an image doesn't work because that's not stretching the image to the required height.
background-size: cover; is what I'd normally need but then I'd need to set a fixed height which is the opposite of responsive.
So, how to make the image (or background image) responsive AND at the same time have it match the height of the content in the adjacent column?
Current code:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="container-fluid">
<div class="row">
<div class="col-6 px-0">
<img class="img-fluid" src="https://via.placeholder.com/3000x2000" alt="">
</div>
<div class="col-6">
Some text...<br>
more<br>
text<br>
and<br>
stuff<br>
for<br>
more<br>
height
</div>
</div>
</div>