Created
October 20, 2014 11:18
-
-
Save voronoy/9454c299871593fc1e68 to your computer and use it in GitHub Desktop.
circular mask for non-square image
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
.mask { | |
display: inline-block; | |
width: 100px; | |
max-height: 100px; | |
border-radius: 50%; | |
overflow: hidden; | |
} | |
.mask > img { | |
max-width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment