CSS borderrightcolor Property (original) (raw)
CSS border-right-color Property
Last Updated : 15 May, 2026
The border-right-color property in CSS is used to specify the color of the right border of an element. It determines how the right border appears visually by applying a specific color.
- It accepts color values like red, #ff0000, rgb(), hsl(), or transparent.
- The color is visible only when a border style is applied (e.g., solid, dashed).
- It is commonly used with border-right-style and border-right-width for complete border styling.
**Syntax:
border-right-color: color | transparent | initial | inherit;
**Property Values:
- **color: It sets the color of the Element's right border.
- **Transparent: It specifies the transparent value of right-border.
- **initial: It sets the Property to its default value.
**Example: Here, we are using border-right-color: color; property.
html `
CSS | border-right-color Property