The border-inline-style property sets the line style on both inline sides — inline-start and inline-end.
01
Both Inline
Start and end sides.
02
solid
Single line.
03
dashed
Broken line.
04
dotted
Round dots.
05
Longhand
Style only.
06
RTL Ready
Direction-aware.
Fundamentals
Definition and Usage
The border-inline-style CSS property controls how the border line is drawn on both inline edges of an element — inline-start and inline-end. It is a longhand of border-inline and accepts the same style keywords as standard border properties.
Unlike border-style, which sets styles on all four sides at once, border-inline-style only affects the two inline edges and adapts to writing mode and text direction — useful for RTL layouts and multilingual interfaces.
💡
Beginner Tip
border-inline-style only sets the line style. Pair it with border-inline-width and border-inline-color, or use the border-inline shorthand.
Foundation
📝 Syntax
border-inline-style accepts standard border style keywords:
The default value of border-inline-style is none. No inline border is drawn until you set a visible style such as solid or dashed.
Reference
💎 Property Values
Value
Example
Meaning
none
border-inline-style: none;
No border on inline edges
solid
border-inline-style: solid;
Single continuous line
dashed
border-inline-style: dashed;
Series of dashes
dotted
border-inline-style: dotted;
Series of dots
double
border-inline-style: double;
Two parallel solid lines
3D styles
groove, ridge, inset, outset
Three-dimensional border effects
Common Style Types
solidcontinuous line
dasheddash pattern
dotteddot pattern
Scope
Inline Style and Writing Modes
border-inline-style applies the same style to both inline-start and inline-end. In horizontal writing modes, that usually means the left and right sides — regardless of text direction.
LTR (direction: ltr)
Dashed left and right inline edges
RTL (direction: rtl)
Dashed left and right inline edges
Compare
border-inline-style vs related properties
Property
Targets
Best for
border-inline-style
Line style on both inline edges
Matching dashed or dotted styles on start and end
border-inline-start-style
Line style on inline-start only
Leading-edge accents that follow text direction
border-inline-end-style
Line style on inline-end only
Trailing-edge dividers that follow text direction
border-inline
Width, style, and color on both inline edges
Setting the full inline border in one rule
border-style
Style on all four sides
Uniform frames around an element
Preview
👀 Live Preview
A box with dashed blue borders on both inline edges:
Dashed borders on the inline edges.
Uses border-inline: 3px dashed #2563eb;.
Hands-On
Examples Gallery
Try border-inline-style with solid, mixed styles, dotted, and RTL layouts.
📚 Basic Inline Border Styles
Style both inline-start and inline-end with one property.
Example 1 — Solid Inline Border
Apply a solid style on both inline edges with width and color longhands, matching the reference tutorial.
border-inline-style-solid.html
<style>div{border-inline-style:solid;border-inline-width:4px;border-inline-color:blue;padding:0.75rem 1rem;}</style><div>This div has a solid blue border on the inline edges.</div>
Dashed still applies to both inline edges. In horizontal RTL, those are still the left and right sides — no separate physical border rules are needed.
🧠 How border-inline-style Works
1
Width reserves space
A border width on both inline edges creates room for the line.
Width
2
Style chooses the pattern
border-inline-style picks solid, dashed, dotted, or other patterns.
Style
3
Direction maps the edges
Inline-start and inline-end map to the correct physical sides for each writing mode.
Mapping
=
▪️
Styled inline borders
Both inline edges show your chosen line style.
Compatibility
Modern Browser Support
The border-inline-style property is supported in all modern browsers, including Chrome, Firefox, Safari, Edge, and Opera.
✓ Baseline · Modern browsers
Logical inline styles in today’s browsers
Chrome, Edge, Firefox, Safari, and Opera support border-inline-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-style property94% supported
Bottom line: Use border-inline-style for direction-aware inline border styles in modern multilingual projects.
Wrap Up
Conclusion
The border-inline-style property controls how the border line is drawn on both inline edges. Use it for dashed dividers, dotted accents, and paired inline effects that stay correct in LTR and RTL layouts.
Combine it with width and color longhands, or use the border-inline shorthand when you want all three values together.
Set border-inline-width alongside style for visible borders
Use dashed or dotted styles for lightweight inline dividers
Prefer logical inline styles over physical left/right rules in RTL layouts
Test inline 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 means only one physical 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
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about border-inline-style
Use these points when styling both inline edges.
5
Core concepts
▪️01
Both inline edges
Start and end sides.
Purpose
⚡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-style property sets the line style on both inline sides — inline-start and inline-end — using values such as solid, dashed, or dotted.
The initial value is none, which means no inline border is drawn unless you set a visible style.
In horizontal left-to-right text, it usually affects the left and right sides — both inline edges along the text flow.
border-inline-style only sets how the line is drawn. You also need border-inline-width greater than zero and usually a color.
border-style sets styles on all four sides. border-inline-style only affects the two inline edges and adapts to writing direction.