CSS border-inline-start Property

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

What You’ll Learn

The border-inline-start property sets a border on the inline-start side — the leading edge along the text flow direction.

01

Inline-Start

Leading side.

02

Shorthand

Width, style, color.

03

LTR / RTL

Direction-aware.

04

Logical

Not left/right.

05

Longhands

width, style, color.

06

i18n Ready

Multilingual UI.

Definition and Usage

The border-inline-start CSS property is a logical shorthand that sets the border on the inline-start side of an element. It combines border-inline-start-width, border-inline-start-style, and border-inline-start-color in one declaration.

This property is part of CSS logical properties and adapts to writing mode and text direction. In horizontal left-to-right text, inline-start is usually the left side. In right-to-left text, it is usually the right side — without changing your CSS.

💡
Beginner Tip

Think of inline-start as the side where reading begins. In English (LTR), that is typically the left edge. Use border-inline-start instead of border-left when your layout must work in RTL too.

📝 Syntax

border-inline-start accepts border width, style, and color like other border shorthands:

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

Basic Example

border-inline-start.css
p {
  border-inline-start: 4px solid red;
}

Syntax Rules

  • Sets width, style, and color for the inline-start side only.
  • Omitted components use initial values: medium, none, currentcolor.
  • Any valid border width, style, and color values are accepted.
  • The physical side mapped to inline-start depends on direction and writing-mode.
  • Use longhands when you need to set only width, style, or color on inline-start.

⚡ Quick Reference

QuestionAnswer
Initial valuemedium none currentcolor
Applies toInline-start border side only
InheritedNo
AnimatablePartially (color and width)
Common useQuote bars, start dividers, RTL-safe leading borders

Default Value

The default value of border-inline-start is medium none currentcolor. No visible border appears until you set a non-none style and a width greater than zero.

💎 Property Values

ComponentExampleMeaning
border-width4px, thin, 0.25remThickness of the inline-start border
border-stylesolid, dashed, dottedHow the inline-start border is drawn
border-colorred, #2563eb, currentcolorColor of the inline-start border

Common Value Types

4px solidsolid start border
3px dasheddashed style
6px solidthick accent

Inline-Start and Writing Modes

border-inline-start 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)

Inline-start border (usually left)

RTL (direction: rtl)

Inline-start border (usually right)

border-inline-start vs related properties

PropertyTargetsBest for
border-inline-startInline-start side onlyLeading edge borders that follow text direction
border-inline-endInline-end side onlyTrailing edge borders at the end of text flow
border-inlineBoth inline-start and inline-endMatching borders on both inline sides
border-leftPhysical left sideFixed LTR-only layouts

👀 Live Preview

A box with a blue border on the inline-start side:

Blue border on the inline-start side.

Uses border-inline-start: 4px solid #2563eb;.

Examples Gallery

Try border-inline-start with solid borders, quote accents, RTL text, and dashed styles.

📚 Basic Inline-Start Borders

Add a border on the leading inline side of an element.

Example 1 — 4px Solid Red Border

Add a solid red border on inline-start, matching the reference tutorial.

border-inline-start-basic.html
<style>
  p {
    border-inline-start: 4px solid red;
    padding: 0.75rem 1rem;
  }
</style>

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

How It Works

In LTR horizontal text, inline-start is usually the left side. The shorthand sets width, style, and color on that one logical edge.

Example 2 — Quote Accent Bar

Use an inline-start border as a leading accent bar on blockquotes or callouts.

border-inline-start-quote.css
blockquote {
  margin: 0;
  padding: 0.75rem 1rem;
  border-inline-start: 4px solid #2563eb;
  background: #eff6ff;
  color: #334155;
}
Try It Yourself

How It Works

A start-side border creates a vertical accent at the beginning of the text flow. In RTL, the bar moves to the correct leading side automatically.

🎨 RTL and Style Variations

Test inline-start borders in RTL and with different styles.

Example 3 — RTL Layout

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

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

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

How It Works

In RTL, inline-start maps to the right side. You do not need a separate border-right rule — the logical property handles the swap.

Example 4 — Dashed Inline-Start Border

Use a dashed style for a lighter leading-edge accent.

border-inline-start-dashed.css
.note {
  padding: 0.75rem 1rem;
  border-inline-start: 3px dashed #7c3aed;
  background: #faf5ff;
}
Try It Yourself

How It Works

Any valid border style works on inline-start. A dashed leading border adds visual emphasis without a full box outline.

🧠 How border-inline-start Works

1

Browser reads direction

Writing mode and direction define which side is inline-start.

Context
2

Shorthand sets the start border

border-inline-start applies width, style, and color on that side only.

Apply
3

Physical side is mapped

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

Mapping
=

Leading inline border

Your element shows a border on the logical start edge of the text flow.

Modern Browser Support

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

Baseline · Modern browsers

Logical inline-start borders in today’s browsers

Chrome, Edge, Firefox, Safari, and Opera support border-inline-start 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 property 94% supported

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

Conclusion

The border-inline-start property controls the border on the leading inline edge. Use it for quote bars, start dividers, and accent borders that stay correct in LTR and RTL layouts.

Combine width, style, and color in one shorthand, or use the longhand properties when you need finer control over each component.

💡 Best Practices

✅ Do

  • Use inline-start borders for quote bars and callout accents
  • Prefer border-inline-start over border-left in RTL layouts
  • Test start borders in both LTR and RTL
  • Pair with padding so text does not touch the border
  • Use longhands when only one component needs to change

❌ Don’t

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

Key Takeaways

Knowledge Unlocked

Five things to remember about border-inline-start

Use these points when styling leading inline borders.

5
Core concepts
02

Default none

No border.

Default
🔀03

4px solid

Common pattern.

Values
🌐04

RTL ready

Direction-aware.

Logical
🛠05

Quote bars

Real use case.

Usage

❓ Frequently Asked Questions

The border-inline-start property is a shorthand that sets the border on the inline-start side of an element — the side at the beginning of the text flow direction.
The initial value is medium none currentcolor, which means no visible border unless you set width, style, or color explicitly.
In horizontal left-to-right text, inline-start is usually the left side. In RTL, inline-start is usually the right side.
border-left always targets the physical left side. border-inline-start follows writing direction, so the same rule works in LTR and RTL layouts.
Use it when you need a border on the leading inline side of content, such as a quote accent bar, a sidebar divider, or a start-edge highlight in multilingual layouts.

Practice in the Live Editor

Open the HTML editor, try border-inline-start, and preview direction-aware start border styles 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