CSS border-block Property
Example
.example1 {
border-block: 5px dashed blue;
}
.example2 {
writing-mode: vertical-rl;
border-block: 5px dashed blue;
}
Hello World!
Meaning:
The border-block CSS property is a shorthand property for setting the individual logical block border property values in a single place in the style sheet.
This property is a shorthand for the following CSS properties:
Default value: | medium none currentcolor |
Inherited: | No |
Animatable: | discrete |
Version: | CSS4 |
JavaScript syntax: |
|
Standard Syntax
border-block: [ border-block-color border-block-style border-block-width ]|initial|inherit|revert|revert-layer|unset;
Browser Support
Status
Property Values
The following table describes the values of this property.
Value | Description |
---|---|
border-block-width | Specifies width of the border block. |
border-block-style | Specifies style of the border block. |
border-block-color | Specifies color of the border block. |
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: medium none currentcolor;
}