Here is a simple Bootstrap 4 markup example:
<div class="card shadow m-3" style="width:500px; height: 280px">
<div class="card-body">
<div class="row">
<div class="col-3 mb-2">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Terrier_mixed-breed_dog.jpg/1024px-Terrier_mixed-breed_dog.jpg" class="img-thumbnail">
</div>
<div class="col-3 mb-2">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Terrier_mixed-breed_dog.jpg/1024px-Terrier_mixed-breed_dog.jpg" class="img-thumbnail">
</div>
...
</div>
<button type="button" class="btn btn-primary w-100 btn-lg mb-3">Insert</button>
</div>
</div>
I would like the content to stay within the card and have the button fixed at the bottom. Additionally, I want the row of images to take up the remaining space in the card body and scroll vertically if necessary.
If possible, please provide a solution using Bootstrap classes or custom CSS. I prefer not to manually set the height of the row and instead have it dynamically fill the available space in the card body (perhaps using flexbox).
Thank you for your assistance!
PS: I have managed to contain the content within the card using overflow-auto, but it also scrolls the button along with the images, which is not desired.