CSS border-block-start-color Property
Example
.example1 {
border: 10px solid blue;
border-block-start-color: red;
}
.example2 {
writing-mode: vertical-lr;
border: 10px solid blue;
border-block-start-color: red;
}
Hello World!
Meaning:
The border-block-start-color CSS property specifies the color of the logical block-start border 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: |
|
Standard Syntax
border-block-start-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 start. Look at CSS Color Values for the list of possible color values. |
transparent | Allows the border block start 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-start-color: currentcolor;
}