border-block-color

Sets the color of the borders in the block dimension (top and bottom in horizontal text). It's a logical way to style both 'vertical' ends of a box at once.

Quick example

.sidebar-item {
  /* Sets both top and bottom borders to purple */
  border-block-color: #7c3aed;
  border-block-style: solid;
  border-block-width: 2px;
}

Quick facts

Initial value
currentcolor
Inherited
No
Applies to
all elements
Animation type
byComputedValueType

Values

border-top-color

border-block-color Browser Support

Widely available Since 2021 95% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.

Safe to use without fallbacks.

87+
66+
14.1+
87+
ESC