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.

.feature-box {
  /* Adds purple bars to the left and right */
  border-inline-color: #7c3aed;
  border-inline-style: solid;
  border-inline-width: 4px;
}
Initial value
currentcolor
Inherited
No
Applies to
allElements
Animation type
byComputedValueType

Values

border-top-color
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.

Safe to use without fallbacks.

87+
66+
14.1+
87+
ESC