CSS border-inline-end Property

Description

The border-inline-end CSS property is used to define the styling of the border on the end side of an inline element within a block context. This property is particularly useful in situations where text or inline content needs different border styles on its trailing side, which can vary depending on the writing direction (left-to-right or right-to-left) in languages like Arabic or Hebrew. By specifying values for border-inline-end, web developers can control the border's width, style, and color on the side that corresponds to the end of the text direction, ensuring precise and context-appropriate border design for inline elements.

Initial value
See individual properties
Applies to
all elements
Inherited
no
Computed value
See individual properties
Animatable
See individual properties
JavaScript syntax
object.style.borderInlineEnd

Interactive Demo

Example of the Border
Inline End Property

Syntax

border-inline-end: <border-width> | <border-style> | <color>

Values

  • <border-width>Specifies the width of the border
  • <border-style>Specifies the style of the border
  • <color>Specifies the color 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-end: 4px dashed red;
}

Browser Support

The following table will show you the current browser support for the CSS border-inline-end 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