CSS border-inline-start-color Property

Beginner
5 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The border-inline-start-color property sets the color of the logical inline-start border. It maps to a physical side based on writing-mode, direction, and text-orientation.

In default horizontal LTR text it acts like border-left-color. In RTL it usually colors the right edge. It only sets color — you still need a visible border-inline-start-style and width. It applies to all elements and is not inherited. The initial value is currentColor.

Standard-track.

Not deprecated and not experimental. Logical border colors have been widely available since 2020. Newer formal syntax may mention stripe images; everyday use is a normal <color>.

CSS Syntax

syntax.css
border-inline-start-color: <color> | initial | inherit;

Any valid CSS color works: named colors, hex, rgb(), hsl(), currentColor, and transparent. The initial value is currentColor.

Property Values

ValueDescriptionTry it
<color>Any CSS color. Named colors like blue are the simplest startTry it
#rrggbbA hex color such as #1d4ed8Try it
rgb()An RGB (or RGBA) color functionTry it
currentColorUses the element’s text color. Initial valueTry it
transparentFully transparent. The border still takes space if width and style are setTry it
initialSets this property to its default value, currentColorTry it
inheritInherits this property from the parent elementTry it

How to Use border-inline-start-color

Give the inline-start edge a visible line first, then set its color.

  1. Set a visible border-inline-start-style such as solid.
  2. Set border-inline-start-width to a size larger than 0.
  3. Set border-inline-start-color to the color you want.
  4. Or use the border-inline-start shorthand for width, style, and color in one line.
PieceRequired?Role
A colorYes (this property)Named, hex, rgb(), currentColor, and so on
A styleTo see itWithout solid (or similar), there is no line to color
A widthTo see itZero width hides the colored edge

Live Preview

Width and style stay the same. Only border-inline-start-color changes.

In horizontal LTR, inline-start is usually the left edge.

Result

Inline start

border-inline-start-color: blue

CSS Examples

Each snippet shows only what you need for the color: a width, a style, and border-inline-start-color. Use Try It Yourself for a live editor.

Example 1 — Named Color

Color the inline-start border blue. In horizontal LTR, that is the left edge.

CSS
<style>
  p {
    border-inline-start-width: 4px;
    border-inline-start-style: solid;
    border-inline-start-color: blue;
  }
</style>

<p>Inline start</p>
Try It Yourself

How It Works

  1. Draw the edge. Width and style create a solid 4px line on the inline-start side.
  2. Paint it. border-inline-start-color: blue sets only the color of that edge.
  3. Read the side. In default horizontal LTR writing, inline-start is the left of the paragraph.
  4. Swap the keyword. Change blue to another named color, hex, or rgb() the same way.

Example 2 — currentColor

Let the border reuse the element’s text color.

CSS
<style>
  p {
    color: #7c3aed;
    border-inline-start-width: 4px;
    border-inline-start-style: solid;
    border-inline-start-color: currentColor;
  }
</style>

<p>Inline start</p>
Try It Yourself

How It Works

  1. Set the text color. color: #7c3aed is what currentColor will read.
  2. Keep a visible border. Width and style still draw the line.
  3. Link the border. border-inline-start-color: currentColor copies that text color onto the edge.
  4. Why it helps. Change color once, and the leading border stays matched. This is also the initial value.

Example 3 — RTL Flips the Physical Side

The same color stays on the inline-start edge when direction is right-to-left.

CSS
<style>
  p {
    direction: rtl;
    border-inline-start-width: 4px;
    border-inline-start-style: solid;
    border-inline-start-color: blue;
  }
</style>

<p>Inline start</p>
Try It Yourself

How It Works

  1. Flip the inline axis. direction: rtl makes text flow right to left.
  2. Keep the logical color. The same border-inline-start-color still targets the start of that flow.
  3. Watch the physical side move. The blue line appears on the right, not the left.
  4. Why not border-left-color? A physical left color would stay on the left in RTL. Logical color stays on the leading edge.

Edge Cases & Pitfalls

If the color seems missing, width or style is usually why.

style

Color alone draws nothing

You need border-inline-start-style and a width greater than zero. Color only paints an existing line.

left

Not the same as border-left-color

border-left-color always hits the physical left. This property follows direction and writing-mode.

short

The shorthand can overwrite the color

border-inline-start sets width, style, and color together. Writing the shorthand after border-inline-start-color replaces that color.

contrast

Low contrast looks invisible

A border color close to the background is easy to miss. Pick a clear contrast when teaching or debugging.

current

currentColor follows color

If you change the text color, a currentColor border changes with it. That is useful for matching, surprising if you expected a fixed ink.

Browser Support

border-inline-start-color is a browser layout property. Node.js, Deno, and Bun do not apply it.

✓ Baseline · Widely available since 2020

border-inline-start-color

Chrome 69+, Firefox 41+, Safari 12.1+, Edge 79+. Internet Explorer has no support.

97% modern browsers
Google Chrome 69+
Full support
Mozilla Firefox 41+
Full support
Apple Safari 12.1+
Full support
Microsoft Edge 79+
Full support
Opera 56+
Full support
Samsung Internet 10.1+
Full support
Internet Explorer No support
None
border-inline-start-color Widely supported

Bottom line: Safe for modern browsers. For Internet Explorer, use a physical fallback such as border-left-color when you only need horizontal LTR layouts.

Key Takeaways

  • Role: the color of the logical inline-start border only.
  • Pair it: needs a visible style and width, or use border-inline-start.
  • Logical: follows writing direction. Not locked to the physical left.
  • Initial: currentColor. Not inherited.

One line: border-inline-start-color paints the leading inline edge; writing mode and direction choose which physical side that is.

Frequently Asked Questions

It sets the color of the logical inline-start border. That edge sits at the beginning of the text flow, not on a fixed physical side.
The initial value is currentColor, which uses the element’s computed text color for that border.
This property only sets color. You also need a visible style such as solid and a width greater than zero on the inline-start edge.
border-left-color always colors the physical left edge. border-inline-start-color follows writing-mode, direction, and text-orientation.
Yes. Use the border-inline-start shorthand. A later border-inline-start-color declaration can still change only the color.
Chrome 69+, Firefox 41+, Safari 12.1+, and Edge 79+ support it. Internet Explorer does not. It is a browser layout property, not a Node.js feature.

Next: border-inline-start-style

Set the line style of the logical inline-start border.

border-inline-start-style tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful