Created
October 25, 2012 22:32
-
-
Save Ricardo-Diaz/3955897 to your computer and use it in GitHub Desktop.
CSS: Adding Rounded Corners-Border-radius
This file contains hidden or 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
Adding rounded corners – border-radius | |
Self-explanatory. Add rounded corners to your CSS3-based elements, like a border or button. You can change the radius to increase or decrease the rounding of the corners. This is a blanket rounding of each corner; the next code snippet lets you individually round each of the 4 corners. | |
.round{ | |
-moz-border-radius: 10px; | |
-webkit-border-radius: 10px; | |
border-radius: 10px; /* future proofing */ | |
-khtml-border-radius: 10px; /* for old Konqueror browsers */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment