Contact Us | +1 888 239-0733 (Toll free US/CA) Mon-Fri: 7:30am to 4:30pm (PST)

CSS 'border-inline-color' Property Explained

Est. Reading: 1 minute
Posted: April 7, 2024

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

FirefoxSafariChromeMicrosoft EdgeOpera
66.014.187.087.073.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.

Ryan Parker

Ryan has been a standout in digital marketing since 2010. He's the go-to person for getting businesses noticed online, with over 300 projects under his belt—these range from helping local business owners to big online stores. As the Head of Digital Marketing at Webzstore Solutions, Ryan knows all the tricks to make companies shine on the internet. He's excellent at using the latest tech and smart strategies to get results. Ryan is all about making businesses grow and reach more people online.

chevron-down