We often have to work with images that varies in size and aspect ratio. But we have to fit them in a container, and to keep the aesthetic of our design we usually choose to resize all the images into a same size.
But taking the easy way out means we have to deal with this...
This is how they look 🥴
The images have killed their aspect ratios to fit in the
width and this doesn't really help with the aesthetic.
But did you know that we can fix that by adding just one more line of code in our CSS'
Whoo! Our images kept their aspect ratios this time around!