border-block-width
Widely availableSince 202196% of users
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.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since April 2021. Widely available since October 2023.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
medium- Inherited
- No
- Applies to
- all elements
- Animation type
- byComputedValueType
Quick example
.divider {
border-block-style: solid;
/* sets 2px thickness for both top and bottom edges */
border-block-width: 2px;
border-block-color: #333;
}Values
border-top-widthborder-block-width browser support
BaselineWidely availableThis 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.
Usage96%of people can use this4% use a browser without it.
Browsers
87+
66+
14.1+
87+Mobile
87+Android
66+Android
14.5+iOS