Style Object
The borderLeft property sets or returns up to three separate border-left properties, in a shorthand form.
With this property, you can set/return:
Set the borderLeft property:
Return the borderLeft property:
Tip: There is no default value for the borderLeft property.
| Parameter | Description |
|---|---|
| width | Sets the width of the left border |
| style | Sets the style of the left border |
| color | Sets the color of the left border |
![]()
The borderLeft property is supported in all major browsers.
Change the width, style, and color of the left border:
Style Object
Your message has been sent to W3Schools.