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.

It is documented as part of the CSS Logical Properties and Values specification.

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

/* Syntax */
border-block-color: border-top-color;

/* Global values */
border-block-color: inherit;
border-block-color: initial;
border-block-color: revert;
border-block-color: revert-layer;
border-block-color: unset;
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.

87+
66+
14.1+
87+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC