The border-radius property is used to add rounded corners to an element. It is one of the most widely used CSS3 properties for modernizing UI design.
You can provide a single value to apply the same radius to all four corners.
.box {
border-radius: 15px;
}
To create a perfect circle, the element must have an equal width and height (square), and the border-radius must be set to 50%.
You can specify up to four values for different corners. The order is: top-left, top-right, bottom-right, bottom-left.
/* tl, tr, br, bl */
.custom-shape {
border-radius: 50px 10px 50px 10px;
}
border-radius: 50% / 20%;.