Style Object
The borderRightColor property sets or returns the color of the right border of an element.
Set the borderRightColor property:
Return the borderRightColor property:
Tip: There is no default value for the borderRightColor property.
| Value | Description |
|---|---|
| color | Specifies the color of the right border. Look at CSS Color Values for a complete list of possible color values |
| transparent | The color of the right border is transparent (underlying content will shine through) |
| inherit | The color of the right border is inherited from the parent element |
![]()
The borderRightColor 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 right border:
Style Object
Your message has been sent to W3Schools.