CSS border-inline-style Property
Description
The border-inline-style property controls the line style drawn on an element’s inline-axis edges - that is, the edges that correspond to the start and end of the inline direction for the element. Because it is a logical property, it does not target a fixed physical side such as left or right; instead the affected edges depend on the element’s text orientation and flow. The mapping from inline start/end to physical sides is influenced by layout-related properties such as writing-mode and direction, so the same rule can produce different visible results in horizontal left-to-right text vs. vertical or right-to-left contexts.
When using border-inline-style in a stylesheet it commonly interacts with shorthand and longhand border properties. The generic logical shorthand border-style can set all four logical/physical border styles at once, while the more specific longhands border-inline-start-style and border-inline-end-style (linked once each) override the corresponding inline edge if present. Because of this cascade behavior, authors can apply a broad inline style with border-inline-style and then fine-tune one side with the start/end longhands when necessary.
Visually, the effect of border-inline-style becomes meaningful only when combined with border thickness and color - for example with border-inline-width and border-color - and by the element’s surrounding context (padding, margin, adjacent elements). It is especially useful for internationalized layouts where you want the same styling intent to adapt to different writing systems without rewriting rules for left/right or top/bottom. In practice, using logical border properties reduces duplication and makes components more robust across direction and writing-mode changes.
Definition
- Initial value
- none
- Applies to
- all elements
- Inherited
- no
- Computed value
- as specified
- Animatable
- yes
- JavaScript syntax
- object.style.borderInlineStyle
Interactive Demo
Inline Style Property
Syntax
border-inline-style: <border-style>
Values
- <border-style>Specifies the style of the border
Example
Browser Support
The following information will show you the current browser support for the CSS border-inline-style property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
