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