border-block-width

Sets the thickness of the borders in the block dimension (usually top and bottom). It's a convenient way to adjust the vertical thickness of a box's borders simultaneously.

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

/* Usage Example */
.divider {
  border-block-style: solid;
  /* sets 2px thickness for both top and bottom edges */
  border-block-width: 2px;
  border-block-color: #333;
}

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

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