| Syntax | selector {border-right-color: value;}
|
|---|---|
| Usage | The border-right-color property is used to specify the color of the right border. See the Box Model for a description of the boxes that are generated for elements and the relative position of the borders. This property is specified by using a color-value, or a keyword, according to the syntax shown above. CSS Example: The border-right-color property is set using the keyword red. h1 {border: medium solid black;
border-right-color: red;
}![]() ![]() ![]() CSS Example: The border-right-color property is set using a RGB 6-Digit Hexadecimal value of #ffa500. h1 {border: medium solid black;
border-right-color: #ffa500;
}![]() ![]() ![]() CSS Example: The border-right-color property is set using a RGB Percentage Functional Notation value of rgb(30%,50%,70%). h1 {border: medium solid black;
border-right-color: rgb(30%,50%,70%);
}![]() ![]() ![]() |
| Keywords |
|
| Applies To | All elements |
| Inherited | No |
| Initial Value | The same as the value of the color property |
![]() ![]() The border-right-color property is set using the keyword red.![]() ![]() The border-right-color property is set using a RGB 6-Digit Hexadecimal value of #ffa500.![]() ![]() The border-right-color property is set using a RGB Percentage Functional Notation value of rgb(30%,50%,70%). |