CSS border-block-color Property

❮ Previous Reference Next ❯

Example

.example1 {
  border: 10px solid blue;
  border-block-color: red;
}

.example2 {
  writing-mode: vertical-lr;
  border: 10px solid blue;
  border-block-color: red;
}





Hello World!

Meaning:

The border-block-color CSS property defines the color of the logical block borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation.

It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation.

Default value:currentcolor
Inherited:No
Animatable:Yes
Version:CSS4
JavaScript syntax:
object.style.borderBlockColor="color|transparent|initial|inherit|revert|revert-layer|unset";



Standard Syntax

border-block-color: color|transparent|initial|inherit|revert|revert-layer|unset;



Browser Support




Status







Property Values

The following table describes the values of this property.

Value Description
color Specifies the color of the border block. Look at CSS Color Values for the list of possible color values.
transparent Allows the border block to be transparent, though it may occupy the space set by the border-block-width property.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.



Default CSS Property Values

selectors {
  border-block-color: currentcolor;
}
❮ Previous Reference Next ❯