Skip to content

Instantly share code, notes, and snippets.

@magemore
Created April 25, 2012 04:47
Show Gist options
  • Save magemore/2486466 to your computer and use it in GitHub Desktop.
Save magemore/2486466 to your computer and use it in GitHub Desktop.
CSS - Adding rounded corners – border-radius
.round{
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px; /* future proofing */
-khtml-border-radius: 10px; /* for old Konqueror browsers */
}
@magemore
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment