CSS border-inline-style Property

Description

The border-inline-style CSS property is used to define the style of an element's inline borders, which are the borders that run horizontally within a block of text. This property allows you to specify the line style, such as solid, dotted, or dashed, for these inline borders. It is particularly useful when working with complex layouts where text flows around elements with borders. By using border-inline-style, you can control the visual appearance of these inline borders, enhancing the overall design and readability of your web content.

Initial value
none
Applies to
all elements
Inherited
no
Computed value
as specified
Animatable
discrete
JavaScript syntax
object.style.borderInlineStyle

Interactive Demo

Example of the Border
Inline Style Property

Syntax

border-inline-style: <border-style>

Values

  • <border-style>Specifies the style of the border

Example

<div>This is a box with a border around it.</div>
div {
  background-color:#eee;
  color:#8b008b;
  padding:.75em;
  width:300px;
  height:100px;
  border-inline: 4px red;
  border-inline-style: solid;
}

Browser Support

The following table will show you the current browser support for the CSS border-inline-style property.

Desktop
Edge Chrome Firefox Opera Safari
8787667314.1
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
87666214.51487

Last updated by CSSPortal on: 1st January 2024