This lesson will help you understand how to round the corner of the element using border-radius property and its different versions.
CSS “border-radius” property helps to create a rounding effect of the element.
The “border-radius” property is shorthand for all the above four values.
When we specify the “border-radius” of 20px then it actually means the radius of the imaginary circle present at the corner of the element (see the image).
We can specify the “border-radius” in percentage(%) as well.
To make the “border-radius” of element as circular, you need to specify its value as “50%” like “border-radius: 50%;”.