border-inline-end-width

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The border-inline-end-width CSS property defines the width of the logical inline-end border of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-widthborder-right-widthborder-bottom-width, or border-left-width property depending on the values defined for writing-mode, direction, and text-orientation.

/* <'border-width'> values */
border-inline-end-width: 2px;
border-inline-end-width: thick;

Related properties are border-block-start-width, border-block-end-width, and border-inline-start-width, which define the other border widths of the element.

Initial valuemedium
Applies toall elements
Inheritedno
Percentageslogical-width of containing block
Mediavisual
Computed valueabsolute length; 0 if the border style is none or hidden
Animation typediscrete
Canonical orderthe unique non-ambiguous order defined by the formal grammar

Syntax

Values

<'border-width'>
The width of the border. See border-width.

Formal syntax

<'border-width'>

Example

HTML Content

<div>
  <p class="exampleText">Example text</p>
</div>

CSS Content

div {
  background-color: yellow;
  width: 120px;
  height: 120px;
}

.exampleText {
  writing-mode: vertical-lr;
  border: 1px solid blue;
  border-inline-end-width: 5px;
}

Specification

Specification Status Comment
CSS Logical Properties and Values Level 1
The definition of 'border-inline-end-width' in that specification.
Editor's Draft Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support No ?

41

381 2

Yes3

No No No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidIE mobileOpera AndroidiOS Safari
Basic support No ? ?

41

381 2

Yes3

No No No

1. Enabled by default since Firefox 41.

2. From version 38: this feature is behind the layout.css.vertical-text.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

3. Supported as -moz-border-end-width.

See also

Document Tags and Contributors

 Contributors to this page: teoli, mfluehr, wbamberg, HTMLValidator, Sebastianz, fscholz, jsx, kscarfone
 Last updated by: teoli,