Adding Rounded Corners in CSS

You may 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 styles definition rounding of each corner, it lets you individually round each of the 4 corners (still not supported in IE).

[View All Snippets]
Show Plain Text »
  1. <style type="text/css">
  2. .round1 {
  3.    border:1px solid #c1c13a;
  4.    -moz-border-radius: 10px;
  5.    -webkit-border-radius: 10px;
  6.    border-radius: 10px; /* future proofing */
  7.    -khtml-border-radius: 10px; /* for old Konqueror browsers */
  8. }
  9. .round2 {
  10.    border:1px solid #c1c13a;
  11.    -moz-border-radius: 10px 10px 0 0;
  12.    -webkit-border-radius: 10px 10px 0 0;
  13.    border-radius: 10px 10px 0 0; /* future proofing */
  14.    -khtml-border-radius: 10px 10px 0 0; /* for old Konqueror browsers */
  15. }
  16. </style>

Result 1:
This is a DIV with all rounded corners.

Result 2:
This is a DIV with 2 rounded corners.
Create Your Free Account
Please remember that this information is essential to use our services correctly.
After creating the account you will be able to download all of our FREE products.
Fields marked with * are mandatory

Please send me information about updates, new products, specials and discounts from ApPHP!
We recommend that your password should be at least 6 characters long and should be different from your username/email. Please use only letters of the English alphabet to enter your name.

Your e-mail address must be valid. We use e-mail for communication purposes (order notifications, etc). Therefore, it is essential to provide a valid e-mail address to be able to use our services correctly.

All your private data is confidential. We will never sell, exchange or market it in any way. Please refer to Privacy Policy.

By clicking "Create Account", you are indicating that you have read and agree to the ApPHP Terms & Conditions.

Quick Registration with: Facebook / Google