Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
The border-inline CSS property is a shorthand property for setting the individual logical inline border property values in a single place in the style sheet.
This property is a shorthand for the following CSS properties:
The border-inline is specified with one or more of the following, in any order:
<'border-width'>The width of the border. See border-width.
<'border-style'>The line style of the border. See border-style.
<color>The color of the border.
The physical borders to which border-inline maps depends on the element's writing mode, directionality, and text orientation. It corresponds to the border-top and border-bottom or border-right, and border-left properties, depending on the values defined for writing-mode, direction, and text-orientation.
The borders in the other dimension can be set with border-block, which sets border-block-start, and border-block-end.
as each of the properties of the shorthand:
|
| all elements |
| no |
as each of the properties of the shorthand:
|
as each of the properties of the shorthand:
|
| CSS Logical Properties and Values Module Level 1 # propdef-border-inline |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Apr 20, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.