border-inline-width

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

The border-inline-width CSS property defines the width of the logical inline borders 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-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation.

/* <'border-width'> values */
border-inline-width: 5px 10px;
border-inline-width: 5px;
border-inline-width: thick;

The border width in the other dimension can be set with border-block-width, which sets border-block-start-width, and border-block-end-width.

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-top-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-width: 5px 10px;
}

Specification

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

Browser compatibility 

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
border-block-widthChrome Full support 69Edge No support NoFirefox Full support 66IE No support NoOpera Full support 56Safari No support NoWebView Android Full support 69Chrome Android Full support 69Firefox Android Full support 66Opera Android Full support 48Safari iOS No support NoSamsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support

See also