CSS border-right-color property
Set the color of the right box:
{
border-style:solid;
border-right-color:#ff0000
}
Try it out . . .
Description of property definition and use
The border-right-color property sets the color of the right box of an element.
Note Always declare the border-style property before the border-color property. The element must get the border before you change its color.
Default: | not specified |
---|---|
Inherited: | no |
Version: | CSS1 |
JavaScript syntax: | object object.style.borderRightColor="blue" |
Browser support
Border-right-color properties are supported by all major browsers.
Note: Internet Explorer6 (and earlier) does not support "transparent" property values.
Note: The property value "inherit" is not supported in any version of Internet Explorer, including IE8.
Property Values
Value | Describe |
---|---|
color_name | A border color (such as red) that specifies a color value as a color name. |
hex_number | A border color that specifies a color value of heteens, such as #ff0000. |
rgb_number | A border color that specifies a color value of rgb code (e.g. rgb (255,0,0)." |
transparent | The default. The border color is transparent. |
inherit | Specifies that the border color should be inherited from the parent element. |
Related articles
CSS tutorial: CSS Border
CSS Reference Manual: Border-right Properties