I have a container with a maximum width of 1400px. Inside this container, there are two images of different sizes. I want to align them in a row using flexbox so that they fit within the 1400px width and still maintain a visually appealing appearance as shown in the image (red border indicates the div with a max-width of 1400px). How can I achieve this? I hope my explanation is clear.
https://i.sstatic.net/yc2jq.png
.container {
display: flex;
max-width: 1400px;
margin: 0 auto;
border: 1px solid black;
}
img {
width: 100%;
display: block;
}
<div class="container">
<img src="https://dummyimage.com/hd1080">
<img src="https://dummyimage.com/vga">
</div>