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