What is the CSS border-right-color property?

The border-right-color property in CSSCascade Style Sheets is used to define the color of the elements of the right border.


In order to use the border-right-color property, we must use the border-style or the border-right-style property. This is because the color will only change if you have a border.

Syntax


border-right-color: color|transparent|initial|inherit;

Property values

  • color: This is used to set the color of the right border.

  • transparent: This is used to specify that the color of the border should be transparent.

  • initial: This is used to set the value to its default value.

  • inherit: This is used to inherit property from its parent value.

Code

Free Resources