Border Radius Property
The border-radius Property
With CSS3, you can give rounded corners to any element by using the border-radius property. Specific border-radius values can be applied for the border-radius property in the following order: top-left, top-right, bottom-right, and bottom-left. Similarly, we can create a circle by setting the border radius to 100%.
Syntax:-
Its syntax is:-
< style >
element{
border-radius: 1-4 length| % / 1-4 length| %| initial| inherit;
}
< /style >
Further Explanation:-
Value | Description |
---|---|
length | Specifies the shape of the corners. |
% | Specifies the shape of the corners in %. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |