border-block

The most powerful logical shorthand for borders. It sets the width, style, and color of both the 'start' and 'end' borders in the block dimension with a single line of CSS.

Quick example

.panel {
  /* Sets a 1px solid gray border on both top and bottom edges */
  border-block: 1px solid #ccc;
}

Quick facts

Initial value
See individual properties
Inherited
No
Applies to
all elements

Values

border-block-start

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