CSS border-inline-end-width attribute

Definition and usage

border-inline-end-width The border width at the end of the inline direction of the attribute setting element.

Note:To make border-inline-end-width The property takes effect, and it must be set border-inline-end-style properties.

CSS border-inline-end-width properties are similar to CSS properties border-bottom-width,border-left-width,border-right-width and border-top-width Very similar, but border-inline-end-width The property depends on the inline direction.

Note:and related CSS properties writing-mode,text-orientation and direction Defines the inline direction. This affects the start and end positions of a line, as well as border-inline-end-width The result of the property. For English pages, the inline direction is from left to right, and the block direction is downward.

Instance

Example 1

Set the border width at the end of the inline direction:

div {
  border-inline-end-style: solid;
  border-inline-end-width: 10px;
}

Try it yourself

Example 2: Combined with the writing-mode property

The position of the border at the end of the inline direction is affected by writing-mode Property effect:

div {
  border-inline-end-style: solid;
  writing-mode: vertical-rl;
  border-inline-end-width: 5px;
}

Try it yourself

Example 3: Combined with the direction property

The position of the border at the start and end of the inline direction is affected by direction Property effect:

div {
  direction: rtl;
  border-inline-end-width: 10px;
}

Try it yourself

CSS syntax

border-inline-end-width: medium|thin|thick|length|initial|inherit;

Property value

Value Description
medium Specifies a medium border. Default value.
thin Specifies a thin border.
thick Specifies a thick border.
length Allows you to define the thickness of the border. See:CSS Units.
initial Sets this property to its default value. See initial.
inherit Inherits this property from its parent element. See inherit.

Technical details

Default value: medium
Inheritance: No
Animation creation: Supported. See:Animation-related properties.
Version: CSS3
JavaScript syntax: object.style.borderInlineEndWidth="10px"

Browser support

The numbers in the table represent the first browser version to fully support this property.

Chrome Edge Firefox Safari Opera
69.0 79.0 41.0 12.1 56.0

Related pages

Tutorial:CSS Borders

Reference:CSS border attribute

Reference:CSS border-inline attribute

Reference:CSS border-inline-end-style attribute

Reference:CSS border-inline-start-width property

Reference:CSS border-bottom-width attribute

Reference:CSS border-left-width property

Reference:CSS border-right-width property

Reference:CSS border-top-width property

Reference:CSS direction property

Reference:CSS text-orientation property

Reference:CSS writing-mode property