Created
May 24, 2013 13:08
-
-
Save trumball/5643377 to your computer and use it in GitHub Desktop.
Individual Rounded Corners
Most developers are familiar with the CSS3 rounded corners syntax. But how would you go about setting different values for each of the corners? Save this code snippet and you should never run into the problem again! I’ve included both a condensed version and a longer base with each corner radius broken down into a diff…
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
#container { | |
-webkit-border-radius: 4px 3px 6px 10px; | |
-moz-border-radius: 4px 3px 6px 10px; | |
-o-border-radius: 4px 3px 6px 10px; | |
border-radius: 4px 3px 6px 10px; | |
} | |
/* alternative syntax broken into each line */ | |
#container { | |
-webkit-border-top-left-radius: 4px; | |
-webkit-border-top-right-radius: 3px; | |
-webkit-border-bottom-right-radius: 6px; | |
-webkit-border-bottom-left-radius: 10px; | |
-moz-border-radius-topleft: 4px; | |
-moz-border-radius-topright: 3px; | |
-moz-border-radius-bottomright: 6px; | |
-moz-border-radius-bottomleft: 10px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment