Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

border-inline-start-style — border style at the inline start

The border-inline-start-style property sets the style of one logical border edge: the start of the inline axis. In horizontal writing, this is the left edge for ltr and the right edge for rtl. It does not set the border width or color.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

border-inline-start-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset;

border-inline-start-style sets the border style at the start of the inline axis, not necessarily on the left. Its mapping to a physical edge depends on writing-mode, direction, and text-orientation. With writing-mode: horizontal-tb, it targets the left edge for direction: ltr and the right edge for direction: rtl.

The property accepts one value: none, hidden, dotted, dashed, solid, double, groove, ridge, inset, or outset. solid produces a continuous line, dotted a dotted line, and dashed a dashed line. The initial value is none; the property is not inherited, and its animation is discrete rather than smoothly interpolating between patterns.

Set width and color separately with border-inline-start-width and border-inline-start-color. Both none and hidden hide the line and produce a used width of zero. They differ in border conflict resolution for tables with border-collapse: collapse: hidden suppresses competing borders. Setting a width alone will not reveal a border whose style is none.

This is a longhand, not a shorthand: border-inline-start can set this edge’s width, style, and color together, while border-inline-style sets the styles of both inline-axis edges. The example forces horizontal writing and clears the other borders to isolate the side change between ltr and rtl.

Examples

<!doctype html>
<meta charset="utf-8">
<title>border-inline-start-style</title>
<style>
  .box {
    writing-mode: horizontal-tb;
    border: 0;
    border-inline-start-width: 6px;
    border-inline-start-color: #1255aa;
    border-inline-start-style: solid;
    padding: 12px;
    margin: 12px;
  }
</style>
<div class="box" dir="ltr">LTR</div>
<div class="box" dir="rtl">RTL</div>

Result

LTR: solid 6px #1255aa border on the left only.
RTL: solid 6px #1255aa border on the right only.

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources