CSS border-block-start-color Property

Description

The border-block-start-color CSS property is used to specify the color of the border on the block-start side of an element in a block-axis writing mode. In writing modes such as vertical-rl (right-to-left vertical) or vertical-lr (left-to-right vertical), which involve text flowing vertically, the block-start side is the top edge in the horizontal writing mode. By setting the border-block-start-color, you can control the color of the border on this particular edge, allowing for customized styling of the element's appearance in different writing modes. This property is particularly useful for creating visually appealing layouts and designs, especially when working with non-standard text directions or orientations.

Initial value
currentcolor
Applies to
all elements
Inherited
no
Computed value
computed color
Animatable
by computed value type
JavaScript syntax
object.style.borderBlockStartColor

Interactive Demo

Example of the Border
Block Start Color Property

Syntax

border-block-start-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-start: 5px solid;
  border-block-start-color: red;
  writing-mode: vertical-rl;
}

Browser Support

The following table will show you the current browser support for the CSS border-block-start-color property.

Desktop
Edge Chrome Firefox Opera Safari
7969415612.1
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
69414812.21069

Last updated by CSSPortal on: 1st January 2024