Skip to content

Instantly share code, notes, and snippets.

@MilkZoft
Created January 16, 2012 22:49
Show Gist options
  • Select an option

  • Save MilkZoft/1623448 to your computer and use it in GitHub Desktop.

Select an option

Save MilkZoft/1623448 to your computer and use it in GitHub Desktop.
code.jobs - Border Radius (Rounded Corners) - CSS3
.round-all {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-khtml-border-radius:5px; /* make sure its proper */
border-radius: 5px;
}
.round-top {
-webkit-border-top-right-radius:5px;
-webkit-border-top-left-radius: 5px;
-moz-border-radius: 5px 5px 0 0;
-khtml-border-radius:5px 5px 0 0; /* make sure its proper */
border-radius: 5px 5px 0 0;
}
.round-right {
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-radius:0 5px 5px 0;
-khtml-border-radius:0 5px 5px 0; /* make sure its proper */
border-radius:0 5px 5px 0;
}
.round-bottom {
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius:0 0 5px 5px;
-khtml-border-radius: 0 0 5px 5px; /* make sure its proper */
border-radius: 0 0 5px 5px;
}
.round-left {
-webkit-border-top-left-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius: 5px 0 0 5px;
-khtml-border-radius: 0 5px 5px 0; /* make sure its proper */
border-radius: 5px 0 0 5px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment