CSS/Properties/border-right-color
From W3C Wiki
< CSS | Properties
Contents |
border-right-color
The border-right-color property sets the color of the right border of a box.
Description
| Values | <color> | transparent | inherit |
|---|---|
| Initial value | the value of the 'color' property |
| Applies to | all elements |
| Inherited | No |
Values
<color>
The color can be specified as a hexadecimal RGB value, a regular RGB value, or by using one of the pre-defined color keywords.
transparent
The border is transparent (though it may have width).
inherit
Takes the same specified value as the property for the element's parent.
Example
Example A
[style.css]
h1 {
border-top-color: red;
border-right-color: black;
border-bottom-color:red;
border-left-color: black;
border-width: 1px;
border-style: solid;
}
[index.html]
<body>
<h1>CSS border property example</h1>
</body>
CSS Reference
The CSS specification defines the border-right-color property in 8.5.2 Border color.

