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

CSS 'border-inline-width' Property Explained

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

The CSS 'border-inline-width' property sets the width of the borders along the inline start and inline end sides of an element. As part of the CSS Logical Properties, it facilitates border width adjustments that respect the writing mode and directionality of the document, ensuring that border widths are applied consistently across languages and scripts.

CSS 'border-inline-width' Property Examples

See the Pen CSS 'border-inline-width' Property by Webzstore (@webzstore) on CodePen.

The 'border-inline-width' property enhances the capability for creating flexible, direction-aware designs, ensuring elements maintain their intended stylistic appearance across various writing systems and layout directions.

Browser Support For 'border-inline-width' Property

FirefoxSafariChromeMicrosoft EdgeOpera
66.014.187.087.073.0

CSS Syntax of the 'border-inline-width' Property

border-inline-width: thin | medium | thick | length | initial | inherit;

Usage of the 'border-inline-width' Property

Use 'border-inline-width' to specify the thickness of the borders that run parallel to the direction of text flow within an element. This property is crucial for designs that must be responsive and adaptable to different writing systems, allowing for the dynamic styling of borders in layouts that accommodate left-to-right (LTR), right-to-left (RTL), or vertical text orientations.

Property Values of the 'border-inline-width' Property

  • Thin: Applies a thin width to the inline borders.
  • Medium: Sets a medium thickness for the inline borders, the default value.
  • Thick: Specifies a thick width for the inline borders.
  • Length: Allows specifying the width with length units (e.g., px, em).
  • Initial: Resets the 'border-inline-width' to its default value.
  • Inherit: Inherits the 'border-inline-width' 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 his company, 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