The CSS ‘border-inline-color‘ property specifies the color of the borders on the inline start and inline end sides of an element. This property is part of the CSS Logical Properties, which aim to provide more intuitive styling in contexts sensitive to the writing direction of the content. It enables the customization of border colors to match design requirements while ensuring compatibility with various writing modes.
CSS ‘border-inline-color’ Property Examples
See the Pen CSS ‘border-inline-color’ Property by Webzstore (@webzstore) on CodePen.
The ‘border-inline-color‘ property supports the creation of designs that are both aesthetically pleasing and functionally adaptable to various writing modes, ensuring that web content remains accessible and consistent across different language and script contexts.
Browser Support For ‘border-inline-color’ Property
![]() | ![]() | ![]() | ![]() | ![]() |
| 66.0 | 14.1 | 87.0 | 87.0 | 73.0 |
CSS Syntax of the ‘border-inline-color’ Property
border-inline-color: color | initial | inherit;
- A single color value applies to both the inline start and inline end borders.
- Two color values specify the inline start and inline end border colors, respectively.
Usage of the ‘border-inline-color’ Property
Use ‘border-inline-color‘ to set or change the color of an element’s inline (horizontal) borders, separate from the block (vertical) borders. This distinction is particularly useful in designs that must be adaptable to different languages and scripts, including those that use right-to-left (RTL) or vertical text directions, allowing for consistent and logical styling across diverse content.
Property Values of the ‘border-inline-color’ Property
- Color: Sets the color of the inline borders using any standard CSS color value, such as named colors, HEX codes, RGB(a), and HSL(a).
- Initial: Resets the ‘border-inline-color‘ to its default value.
- Inherit: Inherits the ‘border-inline-color‘ from the parent element.






Leave a Reply