Style Object
The borderLeftColor property sets or returns the color of the left border of an element.
Set the borderLeftColor property:
Return the borderLeftColor property:
Tip: There is no default value for the borderLeftColor property.
| Value | Description |
|---|---|
| color | Specifies the color of the left border. Look at CSS Color Values for a complete list of possible color values |
| transparent | The color of the left border is transparent (underlying content will shine through) |
| inherit | The color of the left border is inherited from the parent element |
![]()
The borderLeftColor property is supported in all major browsers.
Note: The value "inherit" is not supported in IE7 and earlier. IE8 requires a !DOCTYPE. IE9 supports "inherit".
Change the color of the left border:
Style Object
Your message has been sent to W3Schools.