Open GraemeFulton opened 5 years ago
Use object-fit cover on your images for a quick way to resize images without ruining proportions...
@media (max-width: 540px) { img{ max-height:200px; max-width:100%; object-fit:cover; } }
Here's a demo: https://twitter.com/graeme_fulton/status/1137409649857220608
Thanks, @GraemeFulton for adding this cool tricks. I love this.
Use object-fit cover on your images for a quick way to resize images without ruining proportions...
Here's a demo: https://twitter.com/graeme_fulton/status/1137409649857220608