Created
October 4, 2017 16:02
-
-
Save 1-800-jono/b6b62ac993fe8843d3a69ec14a2d4628 to your computer and use it in GitHub Desktop.
Crop image and center with CSS - similar to background: cover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img { | |
object-fit: cover; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment