border-inline-color

Sets the color for both borders in the inline dimension (usually left and right). It's the logical way to style 'horizontal' edges at once, adapting perfectly for right-to-left text.

It is documented as part of the CSS Logical Properties and Values specification.

/* Usage Example */
.feature-box {
  /* Adds purple bars to the left and right */
  border-inline-color: #7c3aed;
  border-inline-style: solid;
  border-inline-width: 4px;
}

/* Syntax */
border-inline-color: border-top-color;

/* Global values */
border-inline-color: inherit;
border-inline-color: initial;
border-inline-color: revert;
border-inline-color: revert-layer;
border-inline-color: unset;
Widely available Since 2021 95% global usage

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

87+
66+
14.1+
87+
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