Search within TutorialsPark

CSS border-right-color Property


To set the color of the right edge of the border


Definition and Notes.

1. The CSS border-right-color property is used to set the color of the right edge of the border.

2. Should be used only when very specific styling is required, otherwise border-color of border-right are more preferable

Syntax:

CSS border-right-color property. internetexplorer safari firefox opera chrome

View in Splitscreen»

Code-Editor:

Note- The element's border-style must be something other than hidden for the border to be visible

Property Values

Value Description
color To set the width of the right border.
transparent To set a transparent border, but the border still occupies the space set using border-width.
inherit The values for border-right-color are inherited from the parent element.

Specifications

Specs Value
Name border-right-color
Value color | transparent | inherit
Initial Value The value of color for the element
Applies to All Element.
Javascript syntax object.style.borderRightColor=" #fa4b2a "
Inherited No
Computed Value If nothing is specified, the computed value of the property color for the same element, else, same as declared value.
Browser Support internetexplorer safari firefox opera chrome

Related Examples.