CSS border-inline-start-color Property

Beginner
⏱️ 7 min read
📚 Updated: Jul 2026
🎯 4 Examples
Box Model & Layout

What You’ll Learn

The border-inline-start-color property sets the color of the border on the inline-start side only.

01

Inline-Start

Leading side color.

02

Longhand

Color only.

03

LTR / RTL

Direction-aware.

04

Color Formats

Hex, rgb, hsl.

05

currentcolor

Matches text.

06

Logical

Not left-color.

Definition and Usage

The border-inline-start-color CSS property sets the color of the border on the inline-start side of an element. It is a longhand of border-inline-start and part of CSS logical properties that adapt to writing mode and text direction.

Unlike border-left-color, which always targets the physical left side, border-inline-start-color follows the text flow. In LTR horizontal text, inline-start is usually the left side; in RTL, it is usually the right.

💡
Beginner Tip

border-inline-start-color only sets color. Pair it with border-inline-start-width and border-inline-start-style, or use a shorthand like border: 2px solid; plus this longhand.

📝 Syntax

border-inline-start-color accepts any valid CSS color value:

syntax.css
selector {
  border-inline-start-color: color;
}

Basic Example

border-inline-start-color.css
.box {
  border: 2px solid;
  border-inline-start-color: green;
}

Syntax Rules

  • Accepts named colors, hex, rgb, hsl, currentcolor, and transparent.
  • Only affects the inline-start border side; other sides keep their own colors.
  • You need a visible border width and style for the color to appear.
  • The physical side mapped to inline-start depends on direction and writing-mode.
  • Default is currentcolor, matching the element’s text color.

⚡ Quick Reference

QuestionAnswer
Initial valuecurrentcolor
Applies toInline-start border color only
InheritedNo
AnimatableYes, as a color
Common useQuote bar accents, leading edge highlights, RTL-safe start borders

Default Value

The default value of border-inline-start-color is currentcolor. The inline-start border uses the element’s text color unless you set a different color explicitly.

💎 Property Values

ValueExampleMeaning
Named colorborder-inline-start-color: green;Uses a CSS color keyword on inline-start
Hexborder-inline-start-color: #2563eb;Hexadecimal color on the inline-start side
HSLborder-inline-start-color: hsl(142, 71%, 45%);HSL functional notation
currentcolorborder-inline-start-color: currentcolor;Matches the element’s text color
transparentborder-inline-start-color: transparent;Makes the inline-start border invisible
green
#2563eb
hsl

Common Value Types

greennamed color
#2563ebhex value
currentcolormatches text

Inline-Start Color and Writing Modes

border-inline-start-color always targets the start of the inline axis. The physical side changes with text direction, but the logical meaning stays the same.

LTR (direction: ltr)

Green inline-start (usually left)

RTL (direction: rtl)

Green inline-start (usually right)

border-inline-start-color vs related properties

PropertyTargetsBest for
border-inline-start-colorColor on inline-start onlyLeading edge accent color in logical layouts
border-inline-startWidth, style, and color on inline-startSetting the full inline-start border in one rule
border-inline-colorColors on both inline sidesStart and end colors together
border-left-colorPhysical left side colorFixed LTR-only layouts

👀 Live Preview

A box with a blue inline-start border on a gray frame:

Blue border on the inline-start side.

Uses border: 3px solid #cbd5e1; and border-inline-start-color: #2563eb;.

Examples Gallery

Try border-inline-start-color with named colors, hex values, currentcolor, and RTL text.

📚 Basic Start Border Colors

Color only the leading inline border side.

Example 1 — Green Inline-Start Border

Set a green color on inline-start with width and style longhands, matching the reference tutorial.

border-inline-start-color-green.html
<style>
  p {
    border-inline-start-width: 5px;
    border-inline-start-style: solid;
    border-inline-start-color: green;
    padding: 0.75rem 1rem;
  }
</style>

<p>This paragraph has a green border on the inline start side.</p>
Try It Yourself

How It Works

Three longhands work together: width and style make the border visible, and border-inline-start-color: green sets the leading edge color. In LTR, that is usually the left edge.

Example 2 — Hex Color on Inline-Start

Use a hex color for the start border while keeping other sides neutral gray.

border-inline-start-color-hex.css
.card {
  border: 3px solid #cbd5e1;
  border-inline-start-color: #2563eb;
  padding: 1rem;
  background: #eff6ff;
}
Try It Yourself

How It Works

All sides start with gray from the shorthand, then border-inline-start-color recolors only the leading inline edge to blue.

🎨 currentcolor and RTL

Match text color or test start border color in RTL.

Example 3 — currentcolor Keyword

Make the inline-start border match the element’s text color.

border-inline-start-color-current.css
.quote {
  color: #7c3aed;
  border: 3px solid #cbd5e1;
  border-inline-start-color: currentcolor;
  padding: 0.75rem 1rem;
}
Try It Yourself

How It Works

currentcolor is the default value. Here it makes the inline-start border purple to match the text while other sides stay gray.

Example 4 — RTL Layout

The same inline-start color rule adapts when text direction is right-to-left.

border-inline-start-color-rtl.html
<style>
  .rtl-box {
    direction: rtl;
    border: 3px solid #cbd5e1;
    border-inline-start-color: #059669;
    padding: 0.75rem 1rem;
    background: #ecfdf5;
  }
</style>

<div class="rtl-box">
  لون الحد المنطقي الابتدائي
</div>
Try It Yourself

How It Works

Green still applies to inline-start. In RTL, inline-start is on the right, so you do not need a separate border-right-color rule.

🧠 How border-inline-start-color Works

1

Border must be visible

A width and style on inline-start create a border to color.

Setup
2

Color longhand applies

border-inline-start-color sets the leading edge color only.

Color
3

Direction maps the side

In LTR, inline-start is usually left. In RTL, it is usually right.

Mapping
=

Colored start border

Only the leading inline edge shows your chosen color.

Modern Browser Support

The border-inline-start-color property is supported in all modern browsers, including Chrome, Firefox, Safari, Edge, and Opera.

Baseline · Modern browsers

Logical inline-start colors in today’s browsers

Chrome, Edge, Firefox, Safari, and Opera support border-inline-start-color in LTR and RTL layouts.

94% Modern browser support
Google Chrome87+ · Desktop & Mobile
Full support
Mozilla Firefox66+ · Desktop & Mobile
Full support
Apple Safari14.1+ · macOS & iOS
Full support
Microsoft Edge87+ · All versions
Full support
Opera73+ · Modern versions
Full support
border-inline-start-color property 94% supported

Bottom line: Use border-inline-start-color for direction-aware leading border colors in modern multilingual projects.

Conclusion

The border-inline-start-color property controls the color of the leading inline border. Use it for quote bars, start accents, and highlights that stay correct in LTR and RTL layouts.

Pair it with width and style longhands, or use the border-inline-start shorthand when you want all three values together.

💡 Best Practices

✅ Do

  • Set border width and style alongside color for visible start borders
  • Use currentcolor when the start border should match text
  • Prefer logical start colors over border-left-color in RTL layouts
  • Test start border colors in both LTR and RTL
  • Use the shorthand when width, style, and color are all needed

❌ Don’t

  • Set color alone without a visible border width and style
  • Assume inline-start is always the physical left side
  • Mix conflicting physical and logical color rules on the same element
  • Use border-left-color when the design must support RTL
  • Hard-code RTL overrides when one logical rule suffices

Key Takeaways

Knowledge Unlocked

Five things to remember about border-inline-start-color

Use these points when coloring leading inline borders.

5
Core concepts
02

currentcolor

Default.

Default
🔀03

green

Named color.

Values
🌐04

RTL ready

Direction-aware.

Logical
🛠05

Needs width

Color longhand.

Usage

❓ Frequently Asked Questions

The border-inline-start-color property sets the color of the border on the inline-start side only — the leading edge along the text flow direction.
The initial value is currentcolor, which uses the element's text color for the inline-start border.
In horizontal left-to-right text, inline-start is usually the left side. In RTL, inline-start is usually the right side.
border-inline-start-color only sets color. You also need a visible border width and style on that side, or use longhands like border-inline-start-width and border-inline-start-style.
border-left-color always targets the physical left side. border-inline-start-color follows writing direction, so the same rule works in LTR and RTL layouts.

Practice in the Live Editor

Open the HTML editor, try border-inline-start-color, and preview direction-aware start border colors instantly.

HTML Editor →

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.

5 people found this page helpful