CSS Reference Property
border-right-color 1j2k3i
The border-right-color property is used to set the color of the right border of an element. 4r1r25
Official Syntax 4j1l4a
- Syntax:
border-right-color: <color>
- Initial: currentColor
- Applies To: all elements
- Animatable: yes, as a
<color>
Values 4w6m73
- <color>
-
See the
<color>
property entry for a list of possible values.
Notes 5i3os
The border-right-color
property can also inherit the value of the element’s parent’s right border color using the keyword inherit
.
Examples 3y6d6i
The following are all valid border-right-color
values set on an element. The element’s border style and border width are also set using the border-right-width
respectively.
.element { border-right-style: dotted; border-right-width: 10px; border-right-color: red; /* or */ border-right-color: #44aacf; /* or */ border-right-color: rgba(255,0,10,.5); }
Browser s162l
The property works in all major browsers: Chrome, Firefox, Safari, Opera, IE, and on Android and iOS.