CSS border-block-end-color Property
Description
The border-block-end-color
CSS property is used to specify the color of the border on the "end" side of an element in a block flow context, which typically represents the bottom border in a horizontal writing mode (like English) or the right border in a vertical writing mode (such as Japanese or Chinese). This property allows web developers to precisely control the color of this specific border edge, adding visual styling to elements and improving the overall design of a webpage. It's particularly useful when dealing with complex layouts or multilingual content where the writing mode may change, ensuring consistent and aesthetically pleasing borders.
- Initial value
- currentcolor
- Applies to
- all elements
- Inherited
- no
- Computed value
- computed color
- Animatable
- by computed value type
- JavaScript syntax
- object.style.borderBlockEndColor
Interactive Demo
Block End Color Property
Syntax
border-block-end-color: <color>
Values
- <color>The color of the border.
Example
<div class="box">
This is a box with a border.
</div>
.box {
border-block: 5px dashed;
border-block-color: green;
border-block-end: 5px solid;
border-block-end-color: red;
writing-mode: vertical-rl;
}
Browser Support
The following table will show you the current browser support for the CSS border-block-end-color
property.
Desktop | |||||
79 | 69 | 41 | 56 | 12.1 |
Tablets / Mobile | |||||
69 | 41 | 48 | 12.2 | 10 | 69 |
Last updated by CSSPortal on: 1st January 2024