The goal I am aiming for: https://i.sstatic.net/OhkSh.png
The appearance varies in Chrome. I attempted to include flex: 0 0
for images, but it seems that their size cannot be controlled. Is there a way to achieve the Firefox look without using div wrappers for images or specifying image sizes?
div {
display: flex;
gap: 5vw;
}
img {
width: 100%;
height: auto;
}
<div>
<img src="https://place-hold.it/1280x1024" alt="">
<img src="https://place-hold.it/1280x1024" alt="">
<img src="https://place-hold.it/1280x1024" alt="">
</div>
Check out the jsfiddle here: https://jsfiddle.net/ogbva8n5/
UPDATE: It appears that when I assign a specific pixel width to the images, they behave as expected. Could this be a bug in Chrome?