Created
March 18, 2013 03:57
-
-
Save nladart/5184994 to your computer and use it in GitHub Desktop.
Clover image crop - Everyone is circle cropping bio and profile pictures on the web now using border-radius. Do more than just circles.
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
<div class="clover"> | |
<img src="http://fillmurray.com/200/200" class="a" /> | |
<img src="http://placecage.com/200/200" class="b" /> | |
<img src="http://nicenicejpg.com/200/200" class="c" /> | |
<img src="http://placesheen.com/200/200" class="d" /> | |
</div> |
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
@import "compass"; | |
.clover { | |
img { | |
margin: 8px; | |
float: left; | |
} | |
.a { | |
@include border-radius( 50% 50% 0 50% ); | |
} | |
.b { | |
@include border-radius( 50% 50% 50% 0 ); | |
} | |
.c { | |
@include border-radius( 50% 0 50% 50% ); | |
clear: left; | |
} | |
.d { | |
@include border-radius( 0 50% 50% 50% ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment