CSS Portal

CSS border-inline-start-width Property

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
border-inline-start-width
CSS PropertyThis property is supported by all modern browsers.
Updated 1st January 2026

Description

The CSS property border-inline-start-width controls the thickness of the border on the inline-start side of a box - that is, the start edge along the inline axis rather than a fixed physical side. Because it is a logical property, the edge it affects will vary with the element’s writing direction: for example left-to-right horizontal text the inline-start side usually corresponds to the physical left edge, while for right-to-left it corresponds to the physical right edge. This makes border-inline-start-width especially useful when writing styles that must work across multiple writing modes and directions, which are controlled by writing-mode and direction.

Visually, the property determines the width used when the border on that logical side is painted, but the border’s appearance also depends on accompanying border properties. If no border is drawn (for example because border-style is set so the border is not visible), the width has no effect on rendering; the resolved color comes from border-color if one is needed. Shorthand properties such as border or the logical shorthand border-inline-width can override a side-specific declaration, and in situations where you need a predictable physical side you can fall back to a physical property like border-left-width.

From the layout and painting perspective, the width set by border-inline-start-width participates in the element’s box model: it contributes to the space consumed by the element and influences layout calculations (and thus can affect available inline space, overflow, and layout of adjacent content). It also affects hit-testing and the area covered by the border during painting and compositing, and interacts with table border models when applicable - for example when the table uses a collapsed border model controlled by border-collapse. How the border width interacts with the element’s interior sizing depends on box-sizing and related sizing rules governed by box-sizing.

A few practical notes: border-inline-start-width is not inherited, so it must be set on each element you want to affect (or set via a shorthand). It is commonly used in responsive and internationalized layouts because logical properties reduce the number of direction-specific rules you must write. Because shorthands and cascade order still apply, be mindful that broader border shorthands can override this side-specific declaration unless you explicitly set the logical side property after the shorthand.

Definition

Initial value
medium
Applies to
all elements
Inherited
no
Computed value
absolute length; 0 if the border style is none or hidden
Animatable
by computed value type
JavaScript syntax
object.style.borderInlineStartWidth

Interactive Demo

Example of the Border
Inline Start Width Property

Syntax

border-inline-start-width: <border-width>

Values

  • <border-width>Specifies the width of the border

Example

<div class="container">
<section class="example" dir="ltr">
<h2>LTR (dir="ltr")</h2>
<div class="box">Border inline start (12px)</div>
</section>

<section class="example" dir="rtl">
<h2>RTL (dir="rtl")</h2>
<div class="box">Border inline start (12px)</div>
</section>
</div>
.container {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  padding: 20px;
  background: #f7f9fc;
  color: #111;
}

.example {
  margin-bottom: 20px;
}

h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.box {
  display: inline-block;
  padding: 12px 16px;
  border-style: solid;
  border-color: #2563eb;
  border-width: 1px;
  border-inline-start-width: 12px;
  background: #fff;
  border-radius: 4px;
}
Open in editor

Browser Support

The following information will show you the current browser support for the CSS border-inline-start-width property. Hover over a browser icon to see the version that first introduced support for this CSS property.

This property is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee