Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

border-inline-end-width — border thickness at the inline end

The border-inline-end-width property sets the border thickness on the logical inline-end side. The physical side depends on writing direction and writing mode, so it is not always the right edge.

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

Syntax

border-inline-end-width: <length [0,∞]> | thin | medium | thick;
/* CSS Borders Level 4 also defines hairline; verify support before use. */

border-inline-end-width sets border thickness at the end of the inline axis, the axis along which text is laid out within a line. Mapping depends on writing-mode, direction, and text-orientation. With horizontal-tb, this is the right edge for ltr and the left edge for rtl; do not assume the right edge in vertical writing modes.

Supply one nonnegative length, such as 6px, or thin, medium, or thick. Negative values and percentages are invalid. The initial value is medium; the property is not inherited. CSS Borders Level 4 also defines hairline, but support in the target browser must be checked separately before use.

Width alone does not ensure a visible border: also set border-inline-end-style, for example to solid. With style none or hidden, the used width is zero. This property sets neither color nor style; the border-inline-end shorthand can set all three components.

The example resets borders to zero, sets the style to solid, and then assigns 6px to the inline-end side. The expected results describe two elements with opposite text directions. They are not a claim of completed verification.

Examples

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

Result

LTR: border-right-width = 6px; border-left-width = 0px.
RTL: border-right-width = 0px; border-left-width = 6px.

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