Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

border-inline-end-style — border style at the inline end

The border-inline-end-style property sets the border style on an element’s inline-end side. In horizontal writing, this is the right side with direction: ltr and the left side with direction: 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-end-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset;
/* Also accepts CSS-wide keywords. */

border-inline-end-style is a logical property that sets the style of one border edge. The physical edge depends on the element’s writing-mode, direction, and text-orientation. With writing-mode: horizontal-tb, inline end is on the right for direction: ltr and on the left for direction: rtl. It is therefore not a fixed equivalent of border-right-style.

It accepts one <line-style> value listed in the syntax, or a CSS-wide keyword. The initial value is none; the property is not inherited, and animation is discrete. Both none and hidden draw no border and make the used width zero. For collapsed table borders, hidden additionally suppresses competing borders.

Set width and color with border-inline-end-width and border-inline-end-color. The border-inline-end shorthand can set all three components, whereas border-inline-style sets the styles at both inline ends. Watch for later shorthands such as border, which can override the setting.

The example fixes horizontal writing and changes only direction. The expected result is a 4px solid navy line on the right of LTR and the left of RTL, with no other border edges. The example requires local verification.

Examples

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

Result

LTR: a 4px solid navy border on the right only.
RTL: a 4px solid navy border on the left 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