Style border Property
Style border Property
The border property is used to either set or return up to three separate border properties. It is a shorthand property. These are:-
- border-width
- border-style
- border-color
Syntax:-
Its syntax is:- object.style.border OR object.style.border = width style color|initial|inherit
Return:-
Its return is:- string having border width, style, and color of an element
Further Explanation:-
Parameter | Description |
---|---|
width | Sets width of the borders |
style | Sets style of the borders |
color | Sets color of the borders |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |