CSS border-inline-start-width Property

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

Definition and Usage

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

In horizontal left-to-right text, inline-start is usually the left edge, so this property acts like border-left-width. In RTL, the same declaration moves to the right. It applies to all elements and is not inherited. The initial value is medium.

Standard-track.

Not deprecated and not experimental. Logical border widths have been widely available since 2020.

CSS Syntax

syntax.css
border-inline-start-width: <length> | thin | medium | thick | initial | inherit;

These are the same <line-width> values used by physical border widths. The initial value is medium.

Property Values

ValueDescriptionTry it
<length>An explicit non-negative size such as 5px or 0.25emTry it
thinA thin line. Browsers often render this as about 1pxTry it
mediumDefault thickness. Often about 3pxTry it
thickA thick line. Often about 5pxTry it
initialSets this property to its default value, mediumTry it
inheritInherits this property from the parent elementTry it

Negative lengths are invalid. Keyword sizes are not fixed pixels; they can vary slightly by browser.

How to Use border-inline-start-width

Pick a thickness, then give the line a visible style and color so you can see it.

  1. Set border-inline-start-width to a length or keyword such as 5px or thick.
  2. Set border-inline-start-style to a visible value such as solid.
  3. Set border-inline-start-color so the line contrasts with the background.
  4. Or use the border-inline-start shorthand for width, style, and color in one line.
PieceRequired?Role
A widthYesControls how thick the inline-start edge is
A styleTo see itnone hides the line even when width is set
A colorTo see it clearlyLow contrast makes the edge look missing

Live Preview

The box keeps the same style and color. Only border-inline-start-width changes.

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

Result

Inline start

border-inline-start-width: 5px

CSS Examples

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

Example 1 — Pixel Length

Set a clear 5px thickness on the inline-start edge. In LTR, that is the left.

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

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

How It Works

  1. Choose the thickness. border-inline-start-width: 5px sets an exact size.
  2. Draw the line. border-inline-start-style: solid makes the edge visible.
  3. Color it. border-inline-start-color: blue sets the ink of that edge.
  4. Read the edge. With default LTR writing, inline-start is the left side of the paragraph.

Example 2 — Thick Keyword

Same edge, thicker stroke, using a keyword instead of pixels.

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

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

How It Works

  1. Keep style and color. Only the width value changes.
  2. Use a keyword. thick asks the browser for a heavier line than medium.
  3. Compare with thin. thin, medium, and thick are relative sizes, not fixed pixels.
  4. Prefer lengths for UI work. 1px and 4px are clearer when you need a precise design.

Example 3 — RTL Direction

The width stays on the logical inline-start side when text direction flips.

CSS
<style>
  p {
    direction: rtl;
    border-inline-start-width: 5px;
    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 width. The same border-inline-start-width: 5px still targets inline-start.
  3. Watch the physical edge move. The thick line now sits on the right, the leading edge in RTL.
  4. Why logical properties exist. One width declaration can follow direction instead of rewriting border-left-width or border-right-width.

Edge Cases & Pitfalls

If the edge looks missing, the style, color, or physical vs logical mix is usually why.

style

Width alone draws nothing

Without a visible border-inline-start-style, thickness has no line to size. Set solid (or another style) too.

left

Not the same as border-left-width

border-left-width always hits the physical left. This property follows the inline-start side when direction or writing-mode changes.

short

The shorthand can overwrite the width

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

zero

0 removes the edge

A width of 0 is valid and hides the border even if style and color are set. Use that on purpose, not by accident.

keywords

thin, medium, and thick are not fixed

Browsers choose the exact pixel size. For consistent UI borders, prefer lengths such as 1px or 4px.

Browser Support

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

✓ Baseline · Widely available since 2020

border-inline-start-width

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-width Widely supported

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

Key Takeaways

  • Role: the thickness of the logical inline-start border.
  • medium: the initial value. Pair it with a visible style and color.
  • Logical: follows writing direction. Not locked to the physical left.
  • Pair it: add style and color, or use border-inline-start.

One line: border-inline-start-width chooses how thick the inline-start edge is; writing direction chooses which physical side that is.

Frequently Asked Questions

It sets the thickness of the logical inline-start border. In horizontal left-to-right text, that is usually the left edge. In RTL or a vertical writing mode, the same property follows the inline-start side.
The initial value is medium. Browsers typically render medium as about 3px when a visible border style is set.
Width alone does not draw a border. You also need a visible border-inline-start-style such as solid, and a color that contrasts with the background.
border-left-width always targets the physical left edge. border-inline-start-width follows writing-mode and direction, so one rule can stay on the leading text edge in LTR and RTL.
Yes. border-inline-start can set width, style, and color together. A later border-inline-start-width declaration can still change only the thickness.
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-style

Set the line style on both inline borders at once.

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