Created
January 22, 2015 08:05
-
-
Save 5iDS/a4b3868cad0cf71030c0 to your computer and use it in GitHub Desktop.
Center and crop images with a single line of CSS
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