1/* Set rounded corners with border-radius property */
2
3.class {
4 border-radius: 4px;
5}
6
7.circle {
8 border-radius: 50%;
9}
1/* Radius is set for all 4 sides */
2border-radius: 10px;
3
4/* top-left-and-bottom-right | top-right-and-bottom-left */
5border-radius: 10px 5%;
6
7/* top-left | top-right-and-bottom-left | bottom-right */
8border-radius: 2px 4px 2px;
9
10/* top-left | top-right | bottom-right | bottom-left */
11border-radius: 1px 0 3px 4px;
12
13/* The syntax of the second radius allows one to four values */
14/* first radius / radius */
15border-radius: 10px / 20px;
16/* first radius => corner point to left or right side*/
17/* second radius => corner point to top or bottom side*/
18/* radius => corner point to both sides*/
1.my-div{
2 border: 2px solid #f00;
3 border-radius: 50%;
4 /* Specific Radius For Specific Border Side*/
5 border-top-left-radius: 10px;
6 border-top-right-radius: 10px;
7 border-bottom-left-radius: 10px;
8 border-bottom-right-radius: 10px;
9 /*
10 ShortHand
11 **border-radius: 5px 6px 7px 8px
12 5px => for top-left-radius
13 6px => for top-right-radius
14 7px => for bottom-left-radius
15 8px => for bottom-right-radius
16 **border-radius: 10px 20px
17 10px => for top-left and top-right radius
18 20px => for bottom-left and bottom-right radius
19
20 */
21}