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.
Fundamentals
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.
Foundation
📝 Syntax
border-inline-start-color accepts any valid CSS color value:
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.
Cheat Sheet
⚡ Quick Reference
Question
Answer
Initial value
currentcolor
Applies to
Inline-start border color only
Inherited
No
Animatable
Yes, as a color
Common use
Quote bar accents, leading edge highlights, RTL-safe start borders
Defaults
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.
Reference
💎 Property Values
Value
Example
Meaning
Named color
border-inline-start-color: green;
Uses a CSS color keyword on inline-start
Hex
border-inline-start-color: #2563eb;
Hexadecimal color on the inline-start side
HSL
border-inline-start-color: hsl(142, 71%, 45%);
HSL functional notation
currentcolor
border-inline-start-color: currentcolor;
Matches the element’s text color
transparent
border-inline-start-color: transparent;
Makes the inline-start border invisible
green
#2563eb
hsl
Common Value Types
greennamed color
#2563ebhex value
currentcolormatches text
Scope
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)
Compare
border-inline-start-color vs related properties
Property
Targets
Best for
border-inline-start-color
Color on inline-start only
Leading edge accent color in logical layouts
border-inline-start
Width, style, and color on inline-start
Setting the full inline-start border in one rule
border-inline-color
Colors on both inline sides
Start and end colors together
border-left-color
Physical left side color
Fixed LTR-only layouts
Preview
👀 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;.
Hands-On
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>
This paragraph has a green border on the inline start side.
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.
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><divclass="rtl-box">
لون الحد المنطقي الابتدائي
</div>
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.
Compatibility
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 property94% supported
Bottom line: Use border-inline-start-color for direction-aware leading border colors in modern multilingual projects.
Wrap Up
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.
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
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about border-inline-start-color
Use these points when coloring leading inline borders.
5
Core concepts
🎨01
Start color only
Leading side.
Purpose
⚡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.