object-fit: contain;
By default, the image will center itself vertically and horizontally. To push the image to the top use
object-position: 50% 0;
Posted by Daniel to Dev (2018-10-02 07:10)
object-fit: contain;
By default, the image will center itself vertically and horizontally. To push the image to the top use
object-position: 50% 0;