border-right-color

Sets the color of the physical right border. Useful for specific side-styling where you don't want the side to flip automatically in RTL languages.

It is documented as part of the CSS Backgrounds and Borders specification.

/* Usage Example */
.right-accent {
  /* Physical right border color */
  border-right-color: #ef4444;
  border-right-style: solid;
  border-right-width: 4px;
}

/* Global values */
border-right-color: inherit;
border-right-color: initial;
border-right-color: revert;
border-right-color: revert-layer;
border-right-color: unset;
Widely available Since 2015 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

1+
1+
1+
12+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC