CSS Portal

CSS border-inline-start-color Property

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The border-inline-start-color controls the color applied to the logical "inline start" edge of an element’s border box. It is a logical-side property: rather than targeting a fixed physical side (like left or right), it targets whichever physical edge corresponds to the inline start edge in the element’s current writing-mode and direction. Because it is limited to the color aspect, it does not affect the border’s width or whether the border is painted at all - those are controlled separately.

Which physical side is affected by border-inline-start-color depends on the element’s text flow and writing orientation. The mapping to a physical edge is determined by writing-mode (horizontal versus vertical flow) together with the inline progression direction from direction. Whether any color actually becomes visible is also influenced by the element’s border style and width; if the corresponding border-style is set to not paint or the computed width for that edge is zero, the color will have no visible effect. Logical border properties are meant to work together with shorthand and legacy physical properties such as border.

In the cascade, border-inline-start-color behaves like other individual border-side properties: it participates in the normal cascade and can be overridden by more specific rules or by shorthands. Shorthand logical groupings such as border-inline-color can set both inline-start and inline-end colors at once; conversely, specifying the single-side property will override any values previously set by a broader shorthand for that specific logical edge. This property is not an inheritance mechanism for child elements, so descendant boxes will not receive this color from their ancestors unless explicitly specified by the cascade.

From a design perspective, using logical properties like border-inline-start-color makes layouts and theming more robust for internationalization and orientation changes. It simplifies rules when the same visual intent should follow the flow of text rather than a fixed side, avoiding conditional CSS that switches between left/right or top/bottom. When layering visuals, remember that border color interacts with other painting layers (for example, backgrounds and box-shadow) and that visual results will depend on compositing order and the presence of transparent regions.

Definition

Initial value
currentcolor
Applies to
all elements
Inherited
no
Computed value
computed color
Animatable
by computed value type
JavaScript syntax
object.style.borderInlineStartColor

Interactive Demo

Example of the Border
Inline Start Color Property

Syntax

border-inline-start-color: <color>

Values

  • <color>Specifies the color of the border

Example

<div class="container">
<div class="box ltr">
This box is left-to-right. The border-inline-start-color is tomato and appears on the left.
</div>

<div class="box rtl" dir="rtl">
هذا العنصر من اليمين إلى اليسار. يتم تطبيق border-inline-start-color باللون الملكي على الجانب الأيمن.
</div>
</div>
.container {
    max-width: 600px;
    margin: 24px;
}

.box {
    border: 4px solid #ddd;
    border-inline-start-width: 8px;
    border-inline-start-style: solid;
    border-inline-start-color: #ff6347; /* tomato */
    padding: 16px;
    margin: 12px 0;
    border-radius: 6px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
}

.rtl {
    border-inline-start-color: #4169e1; /* royalblue for RTL example */
}

Browser Support

The following information will show you the current browser support for the CSS border-inline-start-color property. Hover over a browser icon to see the version that first introduced support for this CSS property.

This property is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 1st January 2026

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!