border-left-color
Widely availableSince 201597% of users
Sets the color of the left border. While logical properties like 'border-inline-start-color' are often preferred for modern apps, this remains the standard way to target the physical left side specifically.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyHas a modern alternativeIt still works everywhere, as it has since July 2015, and there's a newer way for most uses.
The modern alternative
Use border-inline-start-color. It follows the writing direction, so the same CSS works in right-to-left languages.
When the old way is still right: Keep physical properties when the direction belongs to the screen, not the text, such as a shadow offset or something pinned to the right edge in every language.
The CSS audit finds physical left and right in your code.Check your CSS →
Quick facts
- Initial value
currentcolor- Inherited
- No
- Applies to
- all elements
- Animation type
- color
Quick example
.sidebar-accent {
/* Sets only the left border color */
border-left-color: #3b82f6;
border-left-style: solid;
border-left-width: 4px;
}border-left-color browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
1+
1+
1+
12+Mobile
18+Android
4+Android
1+iOS