border-inline-color
Widely availableSince 202197% of users
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.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since April 2021. Widely available since October 2023.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
currentcolor- Inherited
- No
- Applies to
- all elements
- Animation type
- byComputedValueType
Quick example
.feature-box {
/* Adds purple bars to the left and right */
border-inline-color: #7c3aed;
border-inline-style: solid;
border-inline-width: 4px;
}Values
border-top-colorborder-inline-color browser support
BaselineWidely availableThis 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.
Usage97%of people can use this3% use a browser without it.
Browsers
87+
66+
14.1+
87+Mobile
87+Android
66+Android
14.5+iOS