I'm faced with the challenge of displaying a series of images (up to 5) side by side, each with different sizes. This poses a problem when trying to maintain consistent height without compromising image resolution. The goal is to have all images aligned at the same height regardless of their individual dimensions. Currently, there are 5 divs containing img tags, and the aim is to create a dynamic solution that allows an editor to easily upload their own images.
Technologies in use: Bootstrap 4
Current display format: https://i.sstatic.net/k21NY.jpg Desired display format: https://i.sstatic.net/I1f04.jpg
Attempts were made to limit the max-width of the div containing the img tag to 75px, but this resulted in parts of the images being cut off.
.scrolling-wrapper-flexbox {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
}
...
...
.
<div class="container mt-5">
<div class="row d-flex justify-content-center">
</div>
</div>
</div></div>
The objective is to ensure uniform behavior for all div and img tags so that future integration of dynamic content becomes seamless, allowing editors to personalize the imagery as needed.