I updated the article with a new section and image explaining background-size: cover and contain, among the others.

I did a bit of research on object-fit that I have never heard of before. But I think it would make current tutorial too convoluted. So, I will reserve it for a separate article.

Thanks for the suggestions!

Written by

Issues. Every webdev has them. Published author of CSS Visual Dictionary https://amzn.to/2JMWQP3 few others…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store