CSS border-inline-end-style Property
The border-inline-end-style property sets the line style of an element's logical inline-end border.
The affected physical side depends on the element's writing mode and text direction. The property supports styles such as solid, dashed, dotted, and double, allowing borders to adapt to left-to-right, right-to-left, and vertical writing systems.
border-inline-end-style Syntax
selector {
border-inline-end-style: solid;
}
The property accepts one border-style keyword or a CSS-wide keyword. It does not accept multiple border styles because it controls only one logical edge.
Solid Border
.panel {
border-inline-end-style: solid;
}
Creates a continuous border line.
Dashed Border
.panel {
border-inline-end-style: dashed;
}
Creates a dashed border line.
Dotted Border
.panel {
border-inline-end-style: dotted;
}
Creates a dotted border line.
Double Border
.panel {
border-inline-end-style: double;
}
Creates two parallel border lines with a gap between them.
No Border
.panel {
border-inline-end-style: none;
}
Removes the visible inline-end border.
CSS-Wide Keywords
.inherited {
border-inline-end-style: inherit;
}
.reset {
border-inline-end-style: initial;
}
.unset {
border-inline-end-style: unset;
}
.reverted {
border-inline-end-style: revert;
}
.layer-reverted {
border-inline-end-style: revert-layer;
}
CSS-wide keywords must be used alone and cannot be combined with border-style keywords.
Property Values
The border-inline-end-style property accepts the standard CSS border-style keywords.
| Value | Description |
|---|---|
none |
Displays no border. The computed border width becomes zero. |
hidden |
Hides the border and has special behavior when resolving collapsed table-border conflicts. |
dotted |
Displays a series of dots. |
dashed |
Displays a series of dashes. |
solid |
Displays a single continuous line. |
double |
Displays two parallel lines separated by a gap. |
groove |
Displays a grooved border using shading. |
ridge |
Displays a raised ridge using shading. |
inset |
Displays an inset-style border. |
outset |
Displays an outset-style border. |
Property Characteristics
| Characteristic | Value |
|---|---|
| Initial value | none |
| Inherited | No |
| Applies to | Elements that support the corresponding border properties |
| Computed value | As specified |
| Animation type | Discrete |
| Percentages | Not applicable |
CSS-Wide Keywords
| Keyword | Behavior |
|---|---|
inherit |
Inherits the computed border style from the parent. |
initial |
Resets the style to none. |
unset |
Resets the style to none because the property is not inherited. |
revert |
Reverts the property according to cascade origin rules. |
revert-layer |
Reverts the property according to cascade layer rules. |
The initial style is none, so setting only a border width or color does not produce a visible border unless a visible style is also assigned.
How It Works
The browser identifies the logical inline-end edge and applies the specified border style to the corresponding physical side.
Step 1: Set the Border Width
.panel {
border-inline-end-width: 5px;
}
The border has a specified width of 5 pixels, but it is not visible while its style remains none.
Step 2: Set the Border Color
.panel {
border-inline-end-color: #1769aa;
}
The color is blue, but the border still requires a visible style.
Step 3: Set the Border Style
.panel {
border-inline-end-style: solid;
}
The border becomes visible.
Step 4: Combine the Longhands
.panel {
border-inline-end-width: 5px;
border-inline-end-style: solid;
border-inline-end-color: #1769aa;
}
The element displays a 5-pixel solid blue border on its logical inline-end edge.
Step 5: Change the Writing Direction
.panel {
direction: rtl;
border-inline-end-width: 5px;
border-inline-end-style: dashed;
border-inline-end-color: #1769aa;
}
In horizontal writing mode, the dashed blue border appears on the left instead of the right.
The style remains associated with inline-end even when the corresponding physical edge changes.
The Logical Inline-End Edge
The inline-end edge is the logical ending side of the inline axis. Its physical location depends on writing mode and direction.
Horizontal Left-to-Right
The inline axis progresses from left to right, making the right edge inline-end.
Horizontal Right-to-Left
The inline axis progresses from right to left, making the left edge inline-end.
Vertical Top-to-Bottom
The inline axis progresses from top to bottom, making the bottom edge inline-end.
Vertical Bottom-to-Top
The inline axis progresses from bottom to top, making the top edge inline-end.
A Single Logical Edge
.panel {
border-inline-end-style: dashed;
}
Only the logical inline-end border style changes. The inline-start border style remains unaffected.
Logical Edge vs. Text Position
The border follows the element's border box, not the position of the final word or character within the content.
This distinction allows logical borders to remain consistent even when content length changes.
Writing Modes
The writing-mode property determines the orientation of the inline axis, while direction determines its progression.
Horizontal Writing
.horizontal-panel {
writing-mode: horizontal-tb;
direction: ltr;
border-inline-end: 5px solid #1769aa;
border-inline-end-style: dashed;
}
The dashed border appears on the right.
Vertical Right-to-Left Writing Mode
.vertical-rl-panel {
writing-mode: vertical-rl;
direction: ltr;
border-inline-end: 5px solid #1769aa;
border-inline-end-style: dashed;
}
The dashed border appears on the bottom.
Vertical Left-to-Right Writing Mode
.vertical-lr-panel {
writing-mode: vertical-lr;
direction: ltr;
border-inline-end: 5px solid #1769aa;
border-inline-end-style: dashed;
}
The dashed border also appears on the bottom.
Vertical Writing With RTL Direction
.vertical-rtl-panel {
writing-mode: vertical-rl;
direction: rtl;
border-inline-end: 5px solid #1769aa;
border-inline-end-style: dashed;
}
The dashed border appears on the top.
Writing Mode Mapping
| Writing Mode | Direction | Inline-End Edge |
|---|---|---|
horizontal-tb |
ltr |
Right |
horizontal-tb |
rtl |
Left |
vertical-rl |
ltr |
Bottom |
vertical-rl |
rtl |
Top |
vertical-lr |
ltr |
Bottom |
vertical-lr |
rtl |
Top |
sideways-rl |
ltr |
Bottom |
sideways-lr |
ltr |
Top |
The same border-style declaration can therefore affect different physical sides without changing the CSS rule.
Text Direction
The direction property influences which physical edge corresponds to inline-end.
Left-to-Right Direction
.ltr-panel {
direction: ltr;
border-inline-end: 5px solid #1769aa;
border-inline-end-style: dashed;
}
In horizontal writing mode, the dashed border appears on the right.
Right-to-Left Direction
.rtl-panel {
direction: rtl;
border-inline-end: 5px solid #1769aa;
border-inline-end-style: dashed;
}
In horizontal writing mode, the dashed border appears on the left.
HTML Direction Attribute
<div dir="ltr" class="directional-panel">
Left-to-right content
</div>
<div dir="rtl" class="directional-panel">
Right-to-left content
</div>
.directional-panel {
padding: 20px;
border-inline-end-width: 5px;
border-inline-end-style: dashed;
border-inline-end-color: #1769aa;
}
The same CSS applies the dashed border to the appropriate logical ending edge of each element.
Logical Padding
.directional-panel {
padding-inline-end: 20px;
border-inline-end: 5px dashed #1769aa;
}
The padding and border follow the same logical edge.
Use the HTML dir attribute to establish the direction of document content, especially when supporting right-to-left languages.
Border Styles
The property supports ten standard border-style keywords. Each produces a different appearance when the border has a visible width and color.
solid
.solid-panel {
border-inline-end: 5px solid #1769aa;
}
Displays one continuous line. This is commonly used for separators, accents, and component boundaries.
dashed
.dashed-panel {
border-inline-end: 5px dashed #1769aa;
}
Displays a series of dashes. The exact dash lengths and spacing depend on the browser.
dotted
.dotted-panel {
border-inline-end: 5px dotted #1769aa;
}
Displays a series of dots. Dot shape and spacing may vary between browsers.
double
.double-panel {
border-inline-end: 6px double #1769aa;
}
Displays two parallel lines separated by a gap. The total border thickness is determined by the border width.
groove
.groove-panel {
border-inline-end: 6px groove #1769aa;
}
Creates a grooved appearance using light and dark shading.
ridge
.ridge-panel {
border-inline-end: 6px ridge #1769aa;
}
Creates a raised ridge appearance, generally opposite to groove.
inset
.inset-panel {
border-inline-end: 6px inset #1769aa;
}
Creates inset-style shading. The effect depends on the border's physical position and surrounding borders.
outset
.outset-panel {
border-inline-end: 6px outset #1769aa;
}
Creates outset-style shading, generally opposite to inset.
none
.none-panel {
border-inline-end-style: none;
}
Displays no border and causes the computed border width to become zero.
hidden
.hidden-panel {
border-inline-end-style: hidden;
}
Displays no border and takes precedence in collapsed table-border conflict resolution.
Border Style Comparison
| Style | Appearance | Typical Use |
|---|---|---|
solid |
Continuous line | Standard borders and separators |
dashed |
Broken line | Visual grouping and decorative separators |
dotted |
Series of dots | Subtle decorative boundaries |
double |
Two parallel lines | Emphasized boundaries |
groove |
Grooved shading | Decorative effects |
ridge |
Raised shading | Decorative effects |
inset |
Inset shading | Recessed appearance |
outset |
Outset shading | Raised appearance |
none |
No border | Removing a border |
hidden |
No visible border | Collapsed table-border control |
For most interface components, solid, dashed, and dotted provide predictable visual results.
none and hidden
Both none and hidden prevent the border from being displayed, but they differ in collapsed table-border conflict resolution.
none
.panel {
border-inline-end-width: 5px;
border-inline-end-color: #1769aa;
border-inline-end-style: none;
}
The border is not painted, and its computed width becomes zero.
hidden
.panel {
border-inline-end-width: 5px;
border-inline-end-color: #1769aa;
border-inline-end-style: hidden;
}
The border is also not painted, and its computed width becomes zero.
Collapsed Table Borders
table {
border-collapse: collapse;
}
td {
border: 2px solid #cccccc;
}
td.no-end-border {
border-inline-end-style: hidden;
}
In the collapsed border model, hidden suppresses competing borders along the same edge when resolving border conflicts.
Comparison
| Behavior | none | hidden |
|---|---|---|
| Visible border | No | No |
| Computed border width | Zero | Zero |
| Collapsed table conflict priority | Lowest priority | Suppresses competing borders |
| Typical use | Remove a border | Suppress collapsed table borders |
Use none for ordinary border removal. Use hidden when its special collapsed table-border behavior is needed.
Border Width and Color
The border style works together with the border width and color to determine the final appearance.
Style Only
.panel {
border-inline-end-style: solid;
}
The border uses the initial medium width and currentcolor.
Style With Width
.panel {
border-inline-end-width: 5px;
border-inline-end-style: solid;
}
The border is 5 pixels wide and uses the element's current text color.
Style With Color
.panel {
border-inline-end-style: dashed;
border-inline-end-color: #1769aa;
}
The dashed border uses the initial medium width.
Complete Longhand Declaration
.panel {
border-inline-end-width: 5px;
border-inline-end-style: dashed;
border-inline-end-color: #1769aa;
}
The border is 5 pixels wide, dashed, and blue.
Equivalent Shorthand
.panel {
border-inline-end: 5px dashed #1769aa;
}
The shorthand produces the same result.
Changing Only the Style
.panel {
border-inline-end: 5px solid #1769aa;
border-inline-end-style: dotted;
}
The border becomes dotted while retaining its width and color.
Transparent Border
.panel {
border-inline-end: 5px solid transparent;
}
The border occupies space but is visually transparent.
Zero Width
.panel {
border-inline-end-width: 0;
border-inline-end-style: solid;
border-inline-end-color: #1769aa;
}
The border is not visible because its width is zero.
For a visible border, use a nonzero width, a visible style, and a color that can be distinguished from the surrounding background.
Shorthand Interactions
The border-inline-end-style property is a longhand. Border shorthands can set or reset its value.
border-inline-end Shorthand
.panel {
border-inline-end: 5px dashed #1769aa;
}
The shorthand sets the width, style, and color of the inline-end border.
Style Longhand After Shorthand
.panel {
border-inline-end: 5px solid #1769aa;
border-inline-end-style: dashed;
}
The later declaration changes only the style to dashed.
Shorthand After Style Longhand
.panel {
border-inline-end-style: dotted;
border-inline-end: 5px solid #1769aa;
}
The later shorthand resets the style to solid.
border-inline Shorthand
.panel {
border-inline: 5px solid #1769aa;
border-inline-end-style: dashed;
}
Both inline borders begin solid, but the inline-end border becomes dashed.
border-inline-style Shorthand
.panel {
border-inline: 5px solid #1769aa;
border-inline-style: solid dashed;
}
The inline-start border is solid, and the inline-end border is dashed.
Overriding One Style
.panel {
border-inline: 5px solid #1769aa;
border-inline-style: solid dashed;
border-inline-end-style: dotted;
}
The inline-end border becomes dotted, while inline-start remains solid.
border Shorthand
.panel {
border-inline-end-style: dashed;
border: 5px solid #1769aa;
}
The later border shorthand sets the physical border styles to solid, overriding the earlier logical style where it maps to the same physical edge.
When multiple declarations target the same border style, the CSS cascade determines which value wins.
Logical vs. Physical Border Styles
Physical border-style properties target fixed edges, while border-inline-end-style follows the logical ending edge of the inline axis.
| Property | Target | Writing-Mode Aware |
|---|---|---|
border-left-style |
Physical left border | No |
border-right-style |
Physical right border | No |
border-top-style |
Physical top border | No |
border-bottom-style |
Physical bottom border | No |
border-inline-end-style |
Logical inline-end border | Yes |
Physical Right Border Style
.panel {
border-right-width: 5px;
border-right-color: #1769aa;
border-right-style: dashed;
}
The dashed style always applies to the physical right border.
Logical Inline-End Border Style
.panel {
border-inline-end-width: 5px;
border-inline-end-color: #1769aa;
border-inline-end-style: dashed;
}
The dashed style follows the logical inline-end edge.
Horizontal LTR
.panel {
writing-mode: horizontal-tb;
direction: ltr;
border-inline-end: 5px dashed #1769aa;
}
The dashed border appears on the right.
Horizontal RTL
.panel {
writing-mode: horizontal-tb;
direction: rtl;
border-inline-end: 5px dashed #1769aa;
}
The dashed border appears on the left.
Conflicting Declarations
.panel {
border-right: 5px solid #1769aa;
border-inline-end-style: dashed;
}
In horizontal left-to-right writing, both declarations target the right border style. The later logical declaration wins when their cascade priority is otherwise equal.
Avoid mixing logical and physical border declarations that target the same edge unless the override is intentional.
Inline-Start vs. Inline-End Styles
The border-inline-start-style and border-inline-end-style properties control opposite logical edges.
Inline-Start Style
.panel {
border-inline-start-style: solid;
}
The style applies to the logical beginning edge of the inline axis.
Inline-End Style
.panel {
border-inline-end-style: dashed;
}
The style applies to the logical ending edge of the inline axis.
Combining Both Styles
.panel {
border-inline: 5px solid #1769aa;
border-inline-start-style: solid;
border-inline-end-style: dashed;
}
The inline-start border is solid, and the inline-end border is dashed.
Equivalent Shorthand
.panel {
border-inline: 5px solid #1769aa;
border-inline-style: solid dashed;
}
The border-inline-style shorthand assigns both styles in one declaration.
Horizontal Direction Comparison
| Direction | Inline-Start | Inline-End |
|---|---|---|
| LTR | Left border | Right border |
| RTL | Right border | Left border |
Vertical Direction Comparison
| Inline Progression | Inline-Start | Inline-End |
|---|---|---|
| Top to bottom | Top border | Bottom border |
| Bottom to top | Bottom border | Top border |
Use individual style properties when only one logical border needs to change. Use border-inline-style when assigning both styles together.
border-inline-style Shorthand
The border-inline-style shorthand sets the styles of both logical inline borders.
One Value
.panel {
border-inline-style: solid;
}
Both inline-start and inline-end use the solid style.
Two Values
.panel {
border-inline-style: solid dashed;
}
The first value applies to inline-start, and the second applies to inline-end.
Complete Border Example
.panel {
border-inline-width: 5px;
border-inline-color: #1769aa;
border-inline-style: solid dashed;
}
Both borders are blue and 5 pixels wide. Inline-start is solid, and inline-end is dashed.
Override the Ending Style
.panel {
border-inline: 5px solid #1769aa;
border-inline-end-style: dotted;
}
The inline-start border remains solid, while inline-end becomes dotted.
Shorthand After Longhand
.panel {
border-inline-end-style: dotted;
border-inline-style: solid dashed;
}
The later shorthand sets inline-start to solid and inline-end to dashed.
Choosing the Appropriate Property
| Property | Purpose |
|---|---|
border-inline-style |
Sets the styles of both logical inline borders. |
border-inline-start-style |
Sets only the inline-start border style. |
border-inline-end-style |
Sets only the inline-end border style. |
Box Model and Layout
The border style influences whether the inline-end border contributes thickness to the element's border box.
Visible Border
.panel {
width: 300px;
padding: 20px;
border-inline-end: 5px solid #1769aa;
}
With default content-box sizing and horizontal writing, the 5-pixel border contributes to the element's outer width.
Changing the Visible Style
.panel {
border-inline-end: 5px solid #1769aa;
}
.panel:hover {
border-inline-end-style: dashed;
}
Changing from solid to dashed does not change the border thickness.
Removing the Border
.panel {
border-inline-end: 5px solid #1769aa;
}
.panel:hover {
border-inline-end-style: none;
}
Changing the style to none causes the computed border width to become zero, potentially changing the element's dimensions.
Preserving Border Space
.panel {
border-inline-end: 5px solid transparent;
}
.panel:hover {
border-inline-end-color: #1769aa;
}
Using a transparent color preserves border space while allowing the border to appear on hover.
Border-Box Sizing
.panel {
box-sizing: border-box;
width: 300px;
padding: 20px;
border-inline-end: 5px solid #1769aa;
}
With border-box sizing, the declared width includes the padding and border.
Logical Padding
.panel {
padding-inline-end: 24px;
border-inline-end: 5px dashed #1769aa;
}
The padding creates space between the content and the inline-end border.
In vertical writing modes, the inline-end border may contribute to the element's physical height instead of its width.
Responsive Design
Logical border styles can adapt to viewport size, container size, and writing direction without changing the targeted logical edge.
Media Query Style Change
.responsive-panel {
border-inline-end: 5px solid #1769aa;
}
@media (max-width: 600px) {
.responsive-panel {
border-inline-end-style: dashed;
}
}
The border becomes dashed on smaller screens.
Container Query
.panel-container {
container-type: inline-size;
}
.responsive-panel {
border-inline-end: 5px solid #1769aa;
}
@container (min-width: 500px) {
.responsive-panel {
border-inline-end-style: double;
}
}
The border changes to double when the query container reaches the specified inline size.
Writing-Mode Change
.responsive-panel {
writing-mode: horizontal-tb;
border-inline-end: 5px dashed #1769aa;
}
@media (min-width: 900px) {
.responsive-panel {
writing-mode: vertical-rl;
}
}
Assuming left-to-right inline progression, the dashed border moves from the right edge to the bottom edge when the writing mode changes.
Direction-Aware Component
.responsive-panel {
border-inline-end: 5px dotted #1769aa;
}
[dir="rtl"] .responsive-panel {
border-inline-end-style: solid;
}
The border becomes solid when the component appears inside an element with an explicit right-to-left direction attribute.
Reduced Motion Consideration
.responsive-panel {
border-inline-end: 5px solid #1769aa;
transition: border-inline-end-color 0.3s ease;
}
.responsive-panel:hover {
border-inline-end-color: #27ae60;
}
@media (prefers-reduced-motion: reduce) {
.responsive-panel {
transition: none;
}
}
Border-style changes are discrete rather than smoothly interpolated. For smooth visual transitions, animate a compatible property such as border color.
Practical Uses
The border-inline-end-style property is useful for navigation separators, sidebar dividers, content panels, interactive states, and multilingual layouts.
Navigation Separator
.nav-item {
padding-inline: 16px;
border-inline-end: 1px solid #cccccc;
}
Each navigation item receives a solid separator on its logical ending edge.
Dashed Content Divider
.content-panel {
padding: 20px;
border-inline-end: 3px dashed #1769aa;
}
The panel uses a dashed divider that follows the writing direction.
Dotted Sidebar Divider
.sidebar {
padding-inline-end: 24px;
border-inline-end: 3px dotted #cccccc;
}
The sidebar uses a dotted border along its logical ending edge.
Double Border Accent
.highlight-panel {
padding: 24px;
border-inline-end: 6px double #1769aa;
}
The panel uses a double border to emphasize its logical ending edge.
Hover Style Change
.interactive-panel {
border-inline-end: 5px solid #1769aa;
}
.interactive-panel:hover {
border-inline-end-style: dashed;
}
The border changes from solid to dashed when the element is hovered.
Active Navigation Item
.nav-link {
border-inline-end: 4px solid transparent;
}
.nav-link[aria-current="page"] {
border-inline-end-color: #1769aa;
border-inline-end-style: double;
}
The current navigation item receives a visible double border.
Form Field State
.form-field {
border-inline-end: 4px solid #cccccc;
}
.form-field:focus-visible {
border-inline-end-style: double;
border-inline-end-color: #1769aa;
}
.form-field:user-invalid {
border-inline-end-style: dashed;
border-inline-end-color: #c0392b;
}
The border style and color change according to the field's interaction and validation state.
When border styles communicate important information, provide additional text or visual indicators so the meaning remains clear.
border-inline-end-style Example
The following example compares four border styles while demonstrating how the logical inline-end edge changes with writing direction.
<div class="border-inline-end-style-demo">
<div class="demo-item">
<h3>Solid - LTR</h3>
<div class="demo-box solid-ltr">Solid border</div>
</div>
<div class="demo-item">
<h3>Dashed - RTL</h3>
<div class="demo-box dashed-rtl">Dashed border</div>
</div>
<div class="demo-item">
<h3>Dotted - Vertical</h3>
<div class="demo-box dotted-vertical">Dotted border</div>
</div>
<div class="demo-item">
<h3>Double - Vertical RTL</h3>
<div class="demo-box double-vertical">Double border</div>
</div>
</div>
.border-inline-end-style-demo {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 24px;
}
.border-inline-end-style-demo .demo-item {
min-width: 0;
}
.border-inline-end-style-demo h3 {
margin-bottom: 12px;
font-size: 1rem;
}
.border-inline-end-style-demo .demo-box {
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
min-height: 150px;
padding: 20px;
border-inline-end-width: 8px;
border-inline-end-color: #1769aa;
background-color: #f3f8fc;
color: #173b5e;
font-weight: bold;
text-align: center;
}
.border-inline-end-style-demo .solid-ltr {
writing-mode: horizontal-tb;
direction: ltr;
border-inline-end-style: solid;
}
.border-inline-end-style-demo .dashed-rtl {
writing-mode: horizontal-tb;
direction: rtl;
border-inline-end-style: dashed;
}
.border-inline-end-style-demo .dotted-vertical {
writing-mode: vertical-rl;
direction: ltr;
border-inline-end-style: dotted;
}
.border-inline-end-style-demo .double-vertical {
writing-mode: vertical-rl;
direction: rtl;
border-inline-end-style: double;
}
Each example uses the same border width and color, but the style and writing direction vary.
Solid - LTR
Dashed - RTL
Dotted - Vertical
Double - Vertical RTL
The first example uses a solid border on the right edge.
The second example uses a dashed border on the left edge because the direction is right-to-left.
The third example uses a dotted border on the bottom edge because the writing mode is vertical with left-to-right inline progression.
The fourth example uses a double border on the top edge because the writing mode is vertical with right-to-left inline progression.
This demonstrates how border-inline-end-style controls the border appearance while logical mapping determines its physical position.
Important Considerations
Keep the following points in mind when using border-inline-end-style:
- Purpose: Sets the line style of the logical inline-end border.
- Longhand: Controls the style component of
border-inline-end. - Logical edge: Follows the ending side of the inline axis.
- Writing mode: Determines whether the inline axis is horizontal or vertical.
- Text direction: Determines which physical side corresponds to inline-end.
- Horizontal LTR: The style applies to the right border.
- Horizontal RTL: The style applies to the left border.
- Vertical top-to-bottom: The style applies to the bottom border.
- Vertical bottom-to-top: The style applies to the top border.
- Values: Accepts one standard border-style keyword.
- Multiple values: Are invalid because the property controls only one logical edge.
- Initial value: Is
none. - Inheritance: The property is not inherited.
- none: Removes the visible border and makes its computed width zero.
- hidden: Hides the border and suppresses competing borders in collapsed table-border conflict resolution.
- Visible styles: Include
solid,dashed,dotted,double,groove,ridge,inset, andoutset. - Border width: A visible border requires a nonzero computed width.
- Border color: Uses
currentcolorby default. - Layout: Changing between visible styles generally preserves the border thickness.
- Removing a style: Changing to
noneorhiddencan affect layout because the computed border width becomes zero. - Shorthand resets: Later border shorthands may override the style.
- Physical borders: Avoid unintended conflicts with physical border-style declarations.
- Inline-start: Use
border-inline-start-stylefor the opposite logical edge. - Both inline styles: Use
border-inline-styleto assign styles to both logical inline edges. - Animation: Border-style changes use discrete animation rather than smooth interpolation.
- Border images: A painted border image can cover the regular border style.
- Accessibility: Do not rely on border style alone to communicate important information.
- Browser support: Modern browsers support the standard property without vendor prefixes.
Use border-inline-end-style when the appearance of a border should remain associated with the logical ending edge across different writing modes and text directions.
Browser Support
The border-inline-end-style property is widely available in current versions of Chrome, Edge, Firefox, Safari, and other major browsers.
The standard property does not require vendor prefixes in modern browsers.
Basic Declaration
.panel {
border-inline-end: 5px solid #1769aa;
border-inline-end-style: dashed;
}
Right-to-Left Direction
.panel {
direction: rtl;
border-inline-end: 5px solid #1769aa;
border-inline-end-style: dashed;
}
Vertical Writing Mode
.panel {
writing-mode: vertical-rl;
border-inline-end: 5px solid #1769aa;
border-inline-end-style: dashed;
}
These examples use standard CSS logical border syntax.
Physical Border Fallback
.panel {
border-right: 5px dashed #1769aa;
}
@supports (border-inline-end-style: dashed) {
.panel {
border-right: 0;
border-inline-end: 5px dashed #1769aa;
}
}
This fallback assumes horizontal left-to-right writing. Older browsers use a physical right border, while supporting browsers use the logical inline-end border.
Visit Can I Use? and search for border-inline-end-style to review browser compatibility.
Specifications
The border-inline-end-style property is defined in the CSS Logical Properties and Values Module Level 1 specification.
CSS Logical Properties and Values Module Level 1
The specification defines how logical border styles map to physical border edges according to writing mode and direction.
The available border-style keywords and their rendering behavior are defined in the CSS Backgrounds and Borders specification.
