CSS border-inline-style Property

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

Definition and Usage

The border-inline-style property sets the line style of both logical inline borders — inline-start and inline-end. It maps to physical edges based on writing-mode, direction, and text-orientation.

In horizontal left-to-right text, those edges are usually left and right, so one declaration covers what border-left-style and border-right-style would do. Use one value for both sides, or two values for start then end. It applies to all elements and is not inherited. Each side starts as none.

Standard-track.

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

CSS Syntax

syntax.css
border-inline-style: <line-style> | <line-style> <line-style> | initial | inherit;

One value styles both inline edges. Two values set border-inline-start-style then border-inline-end-style. Keywords match border-style.

Property Values

ValueDescriptionTry it
noneNo inline borders. Initial value for each sideTry it
solidA single solid line on both inline edgesTry it
dashedA dashed line on both inline edgesTry it
dottedA dotted line on both inline edgesTry it
doubleTwo parallel solid lines. Needs enough widthTry it
solid dashedTwo values: start solid, end dashedTry it
initialResets both sides to noneTry it
inheritInherits this property from the parent elementTry it

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

How to Use border-inline-style

Pick a visible style for the inline edges, then give those lines a width and a color.

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

Live Preview

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

In horizontal LTR writing, inline edges are usually left and right.

Result

Inline edges

border-inline-style: solid

CSS Examples

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

Example 1 — Solid Inline Edges

Draw a solid line on both inline edges. In LTR, that is left and right.

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

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

How It Works

  1. Choose the style. border-inline-style: solid asks for a continuous line on both inline sides.
  2. Give them thickness. border-inline-width: 4px makes the lines easy to see.
  3. Give them color. border-inline-color: blue sets the ink of those edges.
  4. Read both edges. With default LTR writing, you get matching left and right borders from one declaration.

Example 2 — Two Different Styles

Use two values to style inline-start and inline-end differently.

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

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

How It Works

  1. First value is start. solid styles the inline-start edge.
  2. Second value is end. dashed styles the inline-end edge.
  3. Keep width and color shared. Both sides still use the same width and color here.
  4. Same idea as longhands. This matches setting border-inline-start-style and border-inline-end-style separately.

Example 3 — Vertical Writing Mode

The styles stay on the logical inline edges when the writing mode flips.

CSS
<style>
  p {
    writing-mode: vertical-rl;
    border-inline-style: solid;
    border-inline-width: 4px;
    border-inline-color: blue;
  }
</style>

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

How It Works

  1. Flip the writing mode. writing-mode: vertical-rl makes lines run vertically.
  2. Keep the logical style. The same border-inline-style: solid still targets both inline edges.
  3. Watch the physical sides move. The lines are no longer stuck to left and right of the screen box.
  4. Why logical properties exist. One style declaration can follow writing mode instead of rewriting left and right borders.

Edge Cases & Pitfalls

If both edges look missing, the style, width, or color is usually why.

none

The default draws nothing

Each side starts as none. Until you set a visible keyword, there are no inline borders to style.

width

Style alone can look invisible

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

left

Not the same as left and right alone

border-left-style always hits the physical left. This property follows the inline axis when writing-mode or direction changes.

short

The shorthand can overwrite the style

border-inline sets width, style, and color together. Writing it after border-inline-style replaces that style.

2vals

Order is start, then end

With two values, the first is inline-start and the second is inline-end. Mixing them up flips which edge gets which style.

Browser Support

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

✓ Baseline · Widely available since 2021

border-inline-style

Chrome 87+, Firefox 66+, Safari 14.1+, Edge 87+. Internet Explorer has no support.

97% modern browsers
Google Chrome 87+
Full support
Mozilla Firefox 66+
Full support
Apple Safari 14.1+
Full support
Microsoft Edge 87+
Full support
Opera 73+
Full support
Samsung Internet 14.0+
Full support
Internet Explorer No support
None
border-inline-style Widely supported

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

Key Takeaways

  • Role: the line style of both logical inline borders.
  • none: the initial value on each side. No inline border until you pick a visible style.
  • One or two values: one styles both sides; two set start then end.
  • Pair it: add width and color, or use border-inline.

One line: border-inline-style chooses how both inline edges are drawn; writing direction chooses which physical sides those are.

Frequently Asked Questions

It sets the line style of both logical inline borders — inline-start and inline-end. In horizontal left-to-right text, that is usually the left and right edges.
Each side starts as none. No inline border shows until you set a visible style such as solid or dashed.
Yes. One value styles both sides. Two values set inline-start first, then inline-end — for example solid dashed.
none draws no line. You also need a width greater than zero and a color that contrasts with the background.
border-left-style always styles the physical left edge. border-inline-style styles both inline edges and follows writing-mode and direction.
Chrome 87+, Firefox 66+, Safari 14.1+, and Edge 87+ support it. Internet Explorer does not. It is a browser layout property, not a Node.js feature.

Next: border-inline-width

Set how thick both logical inline borders are.

border-inline-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