Style borderRadius Property
Style borderRadius Property
The borderRadius property is a shorthand property. It is used to set or return four borderRadius properties. These properties are:-
- borderTopLeftRadius
- borderTopRightRadius
- borderBottomRightRadius
- borderBottomLeftRadius
Syntax:-
Its syntax is:- object.style.borderRadius OR object.style.borderRadius = length|%|initial|inherit
Return:-
Its return is:- string having border-radius property of an element
Further Explanation:-
Value | Description |
---|---|
length | Defines shape of the corners. |
% | Defines the shape of the corners in %. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |