Skip to content

Instantly share code, notes, and snippets.

@Ricardo-Diaz
Created October 25, 2012 22:32
Show Gist options
  • Save Ricardo-Diaz/3955897 to your computer and use it in GitHub Desktop.
Save Ricardo-Diaz/3955897 to your computer and use it in GitHub Desktop.
CSS: Adding Rounded Corners-Border-radius
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