CSS border-inline-start-width Property

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

What You’ll Learn

The border-inline-start-width property sets how thick the border is on the inline-start side only.

01

inline-start

leading side width.

02

thin

About 1px.

03

medium

Default ~3px.

04

thick

About 5px.

05

Length

px, em, rem.

06

RTL Ready

Direction-aware.

Definition and Usage

The border-inline-start-width CSS property controls the thickness of the border on the inline-start side of an element. It is a longhand of border-inline-start and accepts the same width values as standard border width properties.

Unlike border-left-width, which always targets the physical left side, border-inline-start-width adapts to writing mode and text direction — useful for RTL layouts and multilingual interfaces.

💡
Beginner Tip

border-inline-start-width only sets thickness. Pair it with border-inline-start-style and border-inline-start-color, or use the border-inline-start shorthand.

📝 Syntax

border-inline-start-width accepts keyword or length values:

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

Basic Example

border-inline-start-width.css
p {
  border-inline-start-width: 5px;
  border-inline-start-style: solid;
  border-inline-start-color: #ff5733;
}

Syntax Rules

  • Accepts thin, medium, thick, or any length such as 2px or 0.25em.
  • Only affects the inline-start border side; other sides keep their own widths.
  • A visible border-inline-start-style is required for the width to show.
  • The physical side mapped to inline-start depends on direction and writing-mode.
  • Default is medium, typically about 3px in most browsers.

⚡ Quick Reference

QuestionAnswer
Initial valuemedium
Applies toinline-start border thickness
InheritedNo
AnimatableYes (as length)
Common useThick start accent bars, quote dividers, RTL-safe layouts

Default Value

The default value of border-inline-start-width is medium, which browsers typically render as about 3px when a visible border style is applied.

💎 Property Values

ValueExampleMeaning
thinborder-inline-start-width: thin;Thin border, typically about 1px
mediumborder-inline-start-width: medium;Default thickness, typically about 3px
thickborder-inline-start-width: thick;Thick border, typically about 5px
Lengthborder-inline-start-width: 2px;Exact size in px, em, rem, etc.
initialborder-inline-start-width: initial;Resets to the default medium value
inheritborder-inline-start-width: inherit;Inherits from the parent element

Keyword Width Comparison

thin~1px
medium~3px default
thick~5px

Inline-Start Width and Writing Modes

border-inline-start-width always applies to the start of the inline axis. The physical side changes with text direction.

LTR (direction: ltr)

5px inline-start (usually left)

RTL (direction: rtl)

5px inline-start (usually right)

border-inline-start-width vs related properties

PropertyTargetsBest for
border-inline-start-widthThickness on inline-start onlyThick leading dividers in logical layouts
border-inline-startWidth, style, and color on inline-startSetting the full inline-start border in one rule
border-inline-start-styleLine style on inline-startsolid, dashed, or dotted patterns
border-left-widthPhysical left side thicknessFixed LTR-only layouts

👀 Live Preview

A box with a 4px blue inline-start border:

4px border on the inline-start side.

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

Examples Gallery

Try border-inline-start-width with pixel values, keywords, relative units, and RTL layouts.

📚 Basic Start Border Widths

Control thickness on the leading inline border side.

Example 1 — 5px inline-start Border

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

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

<p>This paragraph has a 5px wide border on the inline start side, which adjusts based on the writing mode of the document.</p>
Try It Yourself

How It Works

Three longhands work together: width sets thickness, style makes the line visible, and color sets the line color. In LTR, inline-start is usually the left edge.

Example 2 — thin, medium, and thick Keywords

Use keyword widths for quick, browser-defined thickness on the inline-start side.

border-inline-start-width-keywords.css
.thin {
  border-inline-start: thin solid #2563eb;
}
.medium {
  border-inline-start: medium solid #2563eb;
}
.thick {
  border-inline-start: thick solid #2563eb;
}
Try It Yourself

How It Works

thin, medium, and thick are keyword widths. Browsers map them to approximate pixel sizes — useful when you want consistent relative thickness without exact px values.

🎨 Relative Units and RTL

Scale start borders with text size and direction.

Example 3 — em-Based Inline-Start Width

Use em so the start border scales with the element’s font size.

border-inline-start-width-em.css
.quote {
  font-size: 1.25rem;
  border-inline-start-width: 0.25em;
  border-inline-start-style: solid;
  border-inline-start-color: #7c3aed;
  padding: 0.75rem 1rem;
  background: #faf5ff;
}
Try It Yourself

How It Works

0.25em is relative to the element’s font size. If the text grows, the start border grows proportionally — handy for responsive typography.

Example 4 — RTL with Thick Start Border

A thick inline-start border adapts when text direction is right-to-left.

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

<div class="rtl-box">
  حد سمك ابتدائي عريض
</div>
Try It Yourself

How It Works

The 6px width still applies to inline-start. In RTL, that is usually the right side — no separate border-right-width rule is needed.

🧠 How border-inline-start-width Works

1

Width reserves space

border-inline-start-width sets how much room the border takes on the leading side.

Width
2

Style makes it visible

A visible style such as solid or dashed is required to see the width.

Style
3

Direction maps the side

inline-start maps to the correct physical side for LTR or RTL.

Mapping
=

Sized start border

Only the leading inline edge shows your chosen border thickness.

Modern Browser Support

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

Baseline · Modern browsers

Logical inline-start widths in today’s browsers

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

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

Conclusion

The border-inline-start-width property controls how thick the leading inline border is. Use it for quote bars, thick start highlights, and layouts that stay correct in LTR and RTL writing modes.

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

💡 Best Practices

✅ Do

  • Set border-inline-start-style alongside width for visible borders
  • Use em or rem when the border should scale with text
  • Prefer logical start widths over border-left-width in RTL layouts
  • Test start border widths in both LTR and RTL
  • Use the shorthand when width, style, and color are all needed

❌ Don’t

  • Set width alone without a visible border style
  • Assume inline-start is always the physical left side
  • Mix conflicting physical and logical width rules on the same element
  • Rely on keyword widths when you need pixel-perfect design
  • Hard-code RTL overrides when one logical rule suffices

Key Takeaways

Knowledge Unlocked

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

Use these points when sizing leading inline borders.

5
Core concepts
02

Default medium

~3px.

Default
🔀03

thin / thick

Keywords.

Values
🌐04

RTL ready

Direction-aware.

Logical
🛠05

Needs style

Width longhand.

Usage

❓ Frequently Asked Questions

The border-inline-start-width property sets how thick the border is on the inline-start side only — the leading edge along the text flow direction.
The initial value is medium, which browsers typically render as about 3px when a visible border style is set.
In horizontal left-to-right text, inline-start is usually the left side. In RTL, inline-start is usually the right side.
Width alone does not draw a border. You also need a visible border-inline-start-style such as solid or dashed, and usually a color.
border-left-width always targets the physical left side. border-inline-start-width 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-width, and preview direction-aware start border thickness 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