Tutorials

CSS 'border-right-color' Property Explained

  • Published
  • 1 min read
  • CSS
  • HTML
  • Web Design
CSS 'border-right-color' Property
In this article
  1. CSS 'border-right-color' Property Examples
  2. Browser Support For 'border-right-color' Property
  3. CSS Syntax of the 'border-right-color' Property
  4. Usage of the 'border-right-color' Property
  5. Property Values of the 'border-right-color' Property

Corrected . The browser-support table was rebuilt from MDN browser-compat-data (unprefixed support, desktop browsers), checked 3 October 2026. Editorial approval is still pending.

The CSS 'border-right-color' property specifies the color of an element's right border. It allows for the customization of the right border's color independently of the other borders, enabling designers to create visually distinct or thematic designs on specific sides of an element.

CSS 'border-right-color' Property Examples

See the Pen CSS 'border-right-color' Property Explained by Webzstore (@webzstore) on CodePen.

The 'border-right-color' property provides extensive control over the appearance of an element's right border, supporting the creation of detailed and visually appealing web designs.

Browser Support For 'border-right-color' Property

Unprefixed support for the border-right-color property (selected supported implementation, desktop browsers)
BrowserVersionReleased
Chrome1Dec 2008
Edge12Jul 2015
Firefox1Nov 2004
Safari1Jun 2003
Opera3.5Nov 1998

Source: MDN browser-compat-data 8.1.4, checked 3 October 2026. Prefixed support and implementations that were later removed are not counted, and some browsers list partial support or extra values. See the MDN reference for border-right-color for the full compatibility details, including mobile browsers.

CSS Syntax of the 'border-right-color' Property

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

Usage of the 'border-right-color' Property

Use 'border-right-color' to set or change the color of an element's right border. This property is particularly useful for highlighting or differentiating the right side of an element within a layout or for aligning the border color with a design's color scheme.

Property Values of the 'border-right-color' Property

  • Color: Defines the color of the right border using any standard CSS color values, such as named colors, HEX codes, RGB(a), and HSL(a).
  • Initial: Resets the 'border-right-color' to its default value.
  • Inherit: Inherits the 'border-right-color' from the parent element.

Share this article

Written by

Webzstore Team

Webzstore has helped businesses since 2010. Today, we bring websites, digital marketing and enquiry follow-up into practical plans built around the work each business needs.

Related services

Talk about your website or marketing

Book a Free 30-Minute Call

More tutorials

All tutorials

Privacy choices

Choose what this website may load. Your choice is saved on this device for up to 180 days. Privacy Policy

Turning a choice off stops further use of that optional service on this site. It does not take back information already sent, and we cannot delete cookies that other services set in your browser.