DEV Community


How to use the object-fit CSS property to scale images responsively

Alex Carpenter
I am a self taught developer that works best when floating in between design and engineering teams. I enjoy sharing what I know via short instructional screencasts and the occasional written post.
Originally published at ・1 min read

View the demo code:

object-fit browser support:

Discussion (1)

valix85 profile image

Great work! beauty youtube channel 👍