CSS Portal

CSS border-block-end-style Property

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The border-block-end-style property controls the line-style used to draw the border on the element’s block-end side - that is, the edge of the element that corresponds to the end of the block axis in the current writing mode. As a logical longhand, it is used to express border presentation in a writing-mode–aware way, so the same rule can produce the correct border in horizontal and vertical layouts without referencing physical edges. It is applied to the element’s border box and participates in the normal cascade; it is not an inherited property.

Which physical edge actually receives the style depends on the document’s writing mode and directionality. The mapping between logical and physical edges is determined by the element’s writing-mode, so in a typical horizontal-tb context the block end corresponds to the bottom edge and the logical property will affect the equivalent physical property (for example, the bottom border in that mode would correspond to border-bottom-style). In vertical or other writing modes the block-end edge will map to a different physical side, and the same logical declaration follows that mapping automatically.

Because it is a longhand logical property, border-block-end-style interacts with shorthands and other border properties: a shorthand that sets the block-axis borders will override this longhand when both apply. For example, declarations made with the border-block shorthand can replace individually set block start/end styles. In painting, the chosen border style works together with the element’s border width and color to determine the visible result - if the computed style results in a non-rendering state, the border will not be drawn regardless of width or color settings. Use logical border properties like this one when you need borders that adapt correctly to international layouts and different writing directions without conditional rules.

Definition

Initial value
none
Applies to
all elements
Inherited
no
Computed value
as specified
Animatable
yes
JavaScript syntax
object.style.borderBlockEndStyle

Interactive Demo

Example of the Border
Block End Style Property

Syntax

border-block-end-style: <border-style>

Values

  • <border-style>Specifies the style of the border

Example

<div class='container'>
<h2>border-block-end-style examples</h2>
<p>Each box uses <code>border-block-end-style</code> with a different value.</p>

<div class='box solid'>
Solid
</div>

<div class='box dotted'>
Dotted
</div>

<div class='box groove'>
Groove
</div>
</div>
/* Layout and type */
.container {
  max-width: 640px;
  margin: 40px auto;
  padding: 16px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #0f172a;
}

.container h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.container p {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: #334155;
}

/* Example boxes */
.box {
  background: #f8fafc;
  padding: 14px 16px;
  margin: 12px 0;
  border-radius: 6px;

  /* Use logical border properties so the style applies to the block-end side */
  border-block-end-width: 6px;
  border-block-end-color: #2563eb; /* blue */
  /* border-block-end-style will be set per-example below */
}

/* Different border styles for each example */
.box.solid {
  border-block-end-style: solid;
}

.box.dotted {
  border-block-end-style: dotted;
}

.box.groove {
  border-block-end-style: groove;
}

/* Small responsive tweak */
@media (max-width: 420px) {
  .container { padding: 12px; }
  .box { padding: 12px; }
}

Browser Support

The following information will show you the current browser support for the CSS border-block-end-style property. Hover over a browser icon to see the version that first introduced support for this CSS property.

This property is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 1st January 2026

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!