I am looking to showcase 3 images across the full width of my website, with each image taking up one-third of the space. I want these images to be responsive and adjust accordingly to different screen sizes while maintaining their aspect ratio. Do you have any suggestions on how I can achieve this?
Currently, I've been able to implement this design, but I'm facing issues with the images shrinking in an unnatural way when the site is scaled down.
https://i.sstatic.net/kXVAo.jpg
Here's the code snippet that I've used so far:
#content {
height: auto;
width: 100%;
font-size: 0px;
display: flex;
}
.images {
width: 33.33%;
height: 800px;
}
<div id="content">
<img src="images/phantom.png" class="images" alt="Image of an actor from the musical Phantom of the Opera">
<img src="images/lion_king.png" class="images" alt="Image of an actor from the musical Lion King">
<img src="images/wicked.png" class="images" alt="Image of an actor from the musical Wicked">
</div>