Style borderLeft property
The Style object
Definition and Usage
The borderLeft property sets or returns three separate left border properties in shorthand form.
With this property, you can set/return:
- border-left-width
- border-left-style
- border-left-color
Syntax
Set the borderLeft property:
Object.style.borderLeft="
width style color
"
Return the borderLeft property:
Object.style.borderLeft
**Tip:** The borderLeft property has no default value.
| Parameters | 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. |
Browser support





All major browsers support the borderLeft property.
Example
Example
Change the width, style, and color of the left border:
This is some text.
Try it »
The Style object