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/* Use border-radius property */
2
3.class {
4 border-radius: 5px;
5}
6
7.circle {
8 border-radius: 50%;
9}
1/* The syntax of the first radius allows one to four values */
2/* Radius is set for all 4 sides */
3border-radius: 10px;
4
5/* top-left-and-bottom-right | top-right-and-bottom-left */
6border-radius: 10px 5%;
7
8/* top-left | top-right-and-bottom-left | bottom-right */
9border-radius: 2px 4px 2px;
10
11/* top-left | top-right | bottom-right | bottom-left */
12border-radius: 1px 0 3px 4px;
13
14/* The syntax of the second radius allows one to four values */
15/* (first radius values) / radius */
16border-radius: 10px / 20px;
17
18/* (first radius values) / top-left-and-bottom-right | top-right-and-bottom-left */
19border-radius: 10px 5% / 20px 30px;
20
21/* (first radius values) / top-left | top-right-and-bottom-left | bottom-right */
22border-radius: 10px 5px 2em / 20px 25px 30%;
23
24/* (first radius values) / top-left | top-right | bottom-right | bottom-left */
25border-radius: 10px 5% / 20px 25em 30px 35em;
26
27/* Global values */
28border-radius: inherit;
29border-radius: initial;
30border-radius: unset;