CSS border-inline-end-style Property

Beginner
⏱️ 7 min read
📚 Updated: Jul 2026
🎯 4 Examples
Box Model & Layout

What You’ll Learn

The border-inline-end-style property sets the line style of the border on the inline-end side only.

01

Inline-End

Trailing side style.

02

solid

Single line.

03

dashed

Broken line.

04

dotted

Round dots.

05

Longhand

Style only.

06

RTL Ready

Direction-aware.

Definition and Usage

The border-inline-end-style CSS property controls how the border line is drawn on the inline-end side of an element. It is a longhand of border-inline-end and accepts the same style keywords as standard border properties.

Unlike border-right-style, which always targets the physical right side, border-inline-end-style adapts to writing mode and text direction — useful for RTL layouts and multilingual interfaces.

💡
Beginner Tip

border-inline-end-style only sets the line style. Pair it with border-inline-end-width and border-inline-end-color, or use the border-inline-end shorthand.

📝 Syntax

border-inline-end-style accepts standard border style keywords:

syntax.css
selector {
  border-inline-end-style: style;
}

Basic Example

border-inline-end-style.css
p {
  border-inline-end-style: dashed;
  border-inline-end-width: 2px;
  border-inline-end-color: black;
}

Syntax Rules

  • Accepts none, solid, dashed, dotted, double, and 3D styles.
  • Only affects the inline-end border side; other sides keep their own styles.
  • You need a width greater than zero for the style to be visible.
  • The physical side mapped to inline-end depends on direction and writing-mode.
  • Default is none, which draws no border on inline-end.

⚡ Quick Reference

QuestionAnswer
Initial valuenone
Applies toInline-end border line style
InheritedNo
AnimatableNo
Common useTrailing dividers, dashed end accents, RTL-safe borders

Default Value

The default value of border-inline-end-style is none. No inline-end border is drawn until you set a visible style such as solid or dashed.

💎 Property Values

ValueExampleMeaning
noneborder-inline-end-style: none;No border on inline-end
solidborder-inline-end-style: solid;Single continuous line
dashedborder-inline-end-style: dashed;Series of dashes
dottedborder-inline-end-style: dotted;Series of dots
doubleborder-inline-end-style: double;Two parallel solid lines
3D stylesgroove, ridge, inset, outsetThree-dimensional border effects

Common Style Types

solidcontinuous line
dasheddash pattern
dotteddot pattern

Inline-End Style and Writing Modes

border-inline-end-style always applies to the end of the inline axis. The physical side changes with text direction.

LTR (direction: ltr)

Dashed inline-end (usually right)

RTL (direction: rtl)

Dashed inline-end (usually left)

border-inline-end-style vs related properties

PropertyTargetsBest for
border-inline-end-styleLine style on inline-end onlyDashed or dotted trailing edge in logical layouts
border-inline-endWidth, style, and color on inline-endSetting the full inline-end border in one rule
border-inline-end-widthThickness on inline-endHow thick the end border is
border-right-stylePhysical right side styleFixed LTR-only layouts

👀 Live Preview

A box with a dashed blue inline-end border:

Dashed border on the inline-end side.

Uses border-inline-end: 3px dashed #2563eb;.

Examples Gallery

Try border-inline-end-style with dashed, mixed styles, dotted, and RTL layouts.

📚 Basic End Border Styles

Style only the trailing inline border side.

Example 1 — Dashed Inline-End Border

Apply a dashed style on inline-end with width and color longhands, matching the reference tutorial.

border-inline-end-style-dashed.html
<style>
  p {
    border-inline-end-style: dashed;
    border-inline-end-width: 2px;
    border-inline-end-color: black;
    padding: 0.75rem 1rem;
  }
</style>

<p>This paragraph has a dashed border on the inline-end side.</p>
Try It Yourself

How It Works

Three longhands work together: style draws dashes, width sets thickness, and color sets the line color. In LTR, inline-end is usually the right edge.

Example 2 — Solid Frame with Dashed End

Keep solid borders on other sides but override only inline-end to dashed.

border-inline-end-style-mixed.css
.card {
  border: 2px solid #cbd5e1;
  border-inline-end-style: dashed;
  border-inline-end-color: #2563eb;
  padding: 1rem;
  background: #eff6ff;
}
Try It Yourself

How It Works

The shorthand sets solid borders on all sides first. border-inline-end-style: dashed overrides only the trailing inline edge.

🎨 dotted and RTL

Lightweight end dividers and direction-aware styles.

Example 3 — Dotted Inline-End Border

Use a dotted style for a subtle trailing-edge separator.

border-inline-end-style-dotted.css
.note {
  border-inline-end: 3px dotted #7c3aed;
  padding: 0.75rem 1rem;
  background: #faf5ff;
}
Try It Yourself

How It Works

The shorthand 3px dotted #7c3aed sets width, style, and color on inline-end in one declaration.

Example 4 — RTL with Dashed End

The same dashed inline-end style adapts when text direction is right-to-left.

border-inline-end-style-rtl.html
<style>
  .rtl-box {
    direction: rtl;
    border-inline-end-style: dashed;
    border-inline-end-width: 3px;
    border-inline-end-color: #059669;
    padding: 0.75rem 1rem;
    background: #ecfdf5;
  }
</style>

<div class="rtl-box">
  حد منقط نهائي مكسور
</div>
Try It Yourself

How It Works

Dashed still applies to inline-end. In RTL, that is usually the left side — no separate border-left-style rule is needed.

🧠 How border-inline-end-style Works

1

Width reserves space

A border width on inline-end creates room for the line.

Width
2

Style chooses the pattern

border-inline-end-style picks solid, dashed, dotted, or other patterns.

Style
3

Direction maps the side

Inline-end maps to the correct physical side for LTR or RTL.

Mapping
=

Styled end border

Only the trailing inline edge shows your chosen line style.

Modern Browser Support

The border-inline-end-style property is supported in all modern browsers, including Chrome, Firefox, Safari, Edge, and Opera.

Baseline · Modern browsers

Logical inline-end styles in today’s browsers

Chrome, Edge, Firefox, Safari, and Opera support border-inline-end-style in LTR and RTL layouts.

94% Modern browser support
Google Chrome87+ · Desktop & Mobile
Full support
Mozilla Firefox66+ · Desktop & Mobile
Full support
Apple Safari14.1+ · macOS & iOS
Full support
Microsoft Edge87+ · All versions
Full support
Opera73+ · Modern versions
Full support
border-inline-end-style property 94% supported

Bottom line: Use border-inline-end-style for direction-aware trailing border styles in modern multilingual projects.

Conclusion

The border-inline-end-style property controls how the trailing inline border line is drawn. Use it for dashed dividers, dotted accents, and other end-edge effects that stay correct in LTR and RTL layouts.

Combine it with width and color longhands, or use the border-inline-end shorthand when you want all three values together.

💡 Best Practices

✅ Do

  • Set border-inline-end-width alongside style for visible borders
  • Use dashed or dotted styles for lightweight trailing dividers
  • Prefer logical end styles over border-right-style in RTL layouts
  • Test end border styles in both LTR and RTL
  • Use the shorthand when width, style, and color are all needed

❌ Don’t

  • Set style alone without a border width greater than zero
  • Assume inline-end is always the physical right side
  • Mix conflicting physical and logical style rules on the same element
  • Use 3D styles unless they fit your design system
  • Hard-code RTL overrides when one logical rule suffices

Key Takeaways

Knowledge Unlocked

Five things to remember about border-inline-end-style

Use these points when styling trailing inline borders.

5
Core concepts
02

Default none

No border.

Default
🔀03

dashed

Common choice.

Values
🌐04

RTL ready

Direction-aware.

Logical
🛠05

Needs width

Style longhand.

Usage

❓ Frequently Asked Questions

The border-inline-end-style property sets the line style of the border on the inline-end side only — such as solid, dashed, or dotted — on the trailing edge along the text flow direction.
The initial value is none, which means no inline-end border is drawn unless you set a visible style.
In horizontal left-to-right text, inline-end is usually the right side. In RTL, inline-end is usually the left side.
border-inline-end-style only sets how the line is drawn. You also need a border-inline-end-width greater than zero and usually a color.
border-right-style always targets the physical right side. border-inline-end-style follows writing direction, so the same rule works in LTR and RTL layouts.

Practice in the Live Editor

Open the HTML editor, try border-inline-end-style, and preview direction-aware end border styles instantly.

HTML Editor →

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.

5 people found this page helpful