This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: k9tU5ahRPZxYkOvCvBbtuJ1anlq3xdv-PTl9NAoUTrw
Cover

How to De-Squeeze an Image Using CSS

Written by @niiazaly-dhumaliev | Published on 2020/4/14

TL;DR
CSS has a convenient property called object-fit with cover value. It will crop the sides of an image and maintain its aspect ratio. It is eye-catching at first glance and disrupts the UI of your project. With this property, images in your project will look well sized and look well-sized. To fix the squeezing, CSS has an easy way to do it: apply "object-fit: cover" to the cover value. It is a convenient way to get rid of the squeezing.

[story continues]


Written by
@niiazaly-dhumaliev
Software Developer

Topics and
tags
learning-to-code|coding|beginners|html|html-fundamentals|css3|css|web-development
This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: k9tU5ahRPZxYkOvCvBbtuJ1anlq3xdv-PTl9NAoUTrw