CSS border-inline-start-style Property

If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!

Description

The border-inline-start-style CSS property defines the style of the border on the inline-start side of an element, which is the side that depends on the writing direction (e.g., left in left-to-right scripts like English, or right in right-to-left scripts like Arabic). It allows web developers to specify whether the border should be solid, dashed, dotted, or have any other supported border style. This property is particularly useful for creating visually appealing layouts in multilingual websites where text direction may change, ensuring that the border style adapts accordingly to maintain a consistent and aesthetically pleasing design.

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

Interactive Demo

Example of the Border
Inline Start Style Property

Syntax

border-inline-start-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-start: 4px red;
  border-inline-start-style: dotted
}

Browser Support

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

Desktop
Edge Chrome Firefox Opera Safari
7969415612.1
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
69414812.21069

Last updated by CSSPortal on: 1st January 2024