Style borderRightColor Property
- Previous Page borderRight
- Next Page borderRightStyle
- Go Up One Level HTML DOM Style Object
Definition and Usage
borderRightColor
Sets or returns the color of the element's right border.
See Also:
CSS Tutorial:CSS Borders
CSS Reference Manual:border-right-color Property
HTML DOM Reference Manual:border Property
Example
Example 1
Changes the right border color of the <div> element to red:
document.getElementById("myDiv").style.borderRightColor = "red";
Example 2
Returns the right border color of the <div> element:
alert(document.getElementById("myDiv").style.borderRightColor);
Syntax
Return borderRightColor Property:
object.style.borderRightColor
Set borderRightColor Property:
object.style.borderRightColor = "color|transparent|initial|inherit"
Property Value
Value | Description |
---|---|
color |
Specifies the color of the right border. The default is black. Please see CSS Color Values, for a complete list of possible color values. |
transparent | The right border color is transparent (the underlying content will show through). |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Technical Details
Default Value: | black |
---|---|
Return Value: | A string that represents the color of the element's right border. |
CSS Version: | CSS1 |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |
- Previous Page borderRight
- Next Page borderRightStyle
- Go Up One Level HTML DOM Style Object