CSS border-inline-end-style Property

Beginner
5 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The border-inline-end-style property sets the line style of the logical inline-end border. It maps to a physical edge based on writing-mode, direction, and text-orientation.

In default horizontal LTR text, inline-end is usually the right edge, so this property acts like border-right-style. In RTL it usually styles the left edge. It applies to all elements and is not inherited. The initial value is none.

Standard-track.

Not deprecated and not experimental. Logical border styles have been widely available since 2020.

CSS Syntax

syntax.css
border-inline-end-style: none | solid | dashed | dotted | double | groove | ridge | inset | outset | hidden | initial | inherit;

These are the same <line-style> keywords used by physical border styles. The initial value is none.

Property Values

ValueDescriptionTry it
noneNo inline-end border. Initial valueTry it
solidA single solid line on the inline-end edgeTry it
dashedA dashed lineTry it
dottedA dotted lineTry it
doubleTwo parallel solid linesTry it
grooveA carved 3D look. Needs enough width to read clearlyTry it
initialSets this property to its default value, noneTry it
inheritInherits this property from the parent elementTry it

ridge, inset, outset, and hidden are also valid line styles. hidden hides the border like none, but can behave differently in table border collapsing.

How to Use border-inline-end-style

Pick a visible style, then give the line a width and a color so you can see it.

  1. Set border-inline-end-style to a keyword such as solid or dashed.
  2. Set border-inline-end-width to a size larger than 0.
  3. Set border-inline-end-color so the line contrasts with the background.
  4. Or use the border-inline-end shorthand for width, style, and color in one line.
PieceRequired?Role
A style keywordYesnone hides the line. solid and friends draw it
A widthTo see it clearlyWithout thickness, the style is hard to notice
A colorTo see it clearlyLow contrast makes the edge look missing

Live Preview

The box keeps the same width and color. Only border-inline-end-style changes.

In horizontal LTR, inline-end is usually the right edge.

Result

Inline end

border-inline-end-style: solid

CSS Examples

Each snippet shows only what you need for the inline-end style: a keyword, a width, and a color. Use Try It Yourself for a live editor.

Example 1 — Solid Inline-End Line

Draw a solid line on the inline-end edge. In horizontal LTR, that is the right side.

CSS
<style>
  p {
    border-inline-end-style: solid;
    border-inline-end-width: 4px;
    border-inline-end-color: blue;
  }
</style>

<p>Inline end</p>
Try It Yourself

How It Works

  1. Choose the style. border-inline-end-style: solid asks for a single continuous line.
  2. Give it thickness. border-inline-end-width: 4px makes the line easy to see.
  3. Give it color. border-inline-end-color: blue sets the ink of that edge.
  4. Read the edge. With default horizontal LTR writing, inline-end is the right of the paragraph.

Example 2 — Dashed Divider

Same edge, softer dashes instead of a solid stroke.

CSS
<style>
  p {
    border-inline-end-style: dashed;
    border-inline-end-width: 4px;
    border-inline-end-color: blue;
  }
</style>

<p>Inline end</p>
Try It Yourself

How It Works

  1. Keep width and color. Only the style keyword changes.
  2. Switch to dashes. dashed draws a broken line on the inline-end edge.
  3. Compare with solid. Same place, different pattern. That is all this property controls.
  4. Reuse the idea. dotted and double work the same way: change the keyword, keep width and color.

Example 3 — RTL Flips the Physical Side

The same logical style moves to the left when the direction is right-to-left.

CSS
<style>
  p {
    direction: rtl;
    border-inline-end-style: solid;
    border-inline-end-width: 4px;
    border-inline-end-color: blue;
  }
</style>

<p>Inline end</p>
Try It Yourself

How It Works

  1. Flip the inline axis. direction: rtl makes text flow right to left.
  2. Keep the logical style. The same border-inline-end-style: solid still targets the end of that flow.
  3. Watch the physical edge move. The line appears on the left, not the right.
  4. Why not border-right-style? A physical right style would stay on the right in RTL. Logical styles stay on the trailing edge.

Edge Cases & Pitfalls

If the line is missing, the style, width, or color is usually why.

none

The default draws nothing

The initial value is none. Until you set a visible keyword, there is no inline-end border to style.

width

Style alone can look invisible

Set border-inline-end-width and a clear border-inline-end-color. Thin lines and low contrast are easy to miss.

right

Not the same as border-right-style

border-right-style always hits the physical right. This property follows the inline-end side when direction or writing-mode changes.

short

The shorthand can overwrite the style

border-inline-end sets width, style, and color together. Writing the shorthand after border-inline-end-style replaces that style.

3d

Groove and ridge need more width

groove, ridge, inset, and outset use light and dark edges. A 1px width often looks flat. Try 4px or more.

Browser Support

border-inline-end-style is a browser layout property. Node.js, Deno, and Bun do not apply it.

✓ Baseline · Widely available since 2020

border-inline-end-style

Chrome 69+, Firefox 41+, Safari 12.1+, Edge 79+. Internet Explorer has no support.

97% modern browsers
Google Chrome 69+
Full support
Mozilla Firefox 41+
Full support
Apple Safari 12.1+
Full support
Microsoft Edge 79+
Full support
Opera 56+
Full support
Samsung Internet 10.1+
Full support
Internet Explorer No support
None
border-inline-end-style Widely supported

Bottom line: Safe for modern browsers. For Internet Explorer, use a physical fallback such as border-right-style when you only need horizontal LTR layouts.

Key Takeaways

  • Role: the line style of the logical inline-end border.
  • none: the initial value. No inline-end border until you pick a visible style.
  • Logical: follows writing direction. Not locked to the physical right.
  • Pair it: add width and color, or use border-inline-end.

One line: border-inline-end-style chooses how the trailing inline edge is drawn; writing direction chooses which physical side that is.

Frequently Asked Questions

It sets the line style of the logical inline-end border. In horizontal left-to-right text that is usually the right edge. In RTL, the same property follows the left edge.
The initial value is none. No inline-end border shows until you set a visible style such as solid or dashed.
none draws no line. You also need a width greater than zero and a color that contrasts with the background.
border-right-style always styles the physical right edge. border-inline-end-style follows writing-mode, direction, and text-orientation.
Yes. border-inline-end can set width, style, and color together. A later border-inline-end-style declaration can still change only the style.
Chrome 69+, Firefox 41+, Safari 12.1+, and Edge 79+ support it. Internet Explorer does not. It is a browser layout property, not a Node.js feature.

Next: border-inline-end-width

Set how thick the logical inline-end border is.

border-inline-end-width tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful