CSS border-block-end-width attribute
- Previous Page border-block-end-style
- Next Page border-block-start
Definition and usage
border-block-end-width
attribute sets the border width at the end of the block direction for the element.
Note:To make border-block-end-width
The attribute takes effect, you must set border-block-end-style
attributes.
CSS border-block-end-width
attributes are related to border-bottom-width
,border-left-width
,border-right-width
and border-top-width
The attributes are very similar, but border-block-end-width
The attribute depends on the block direction.
Note:related CSS properties writing-mode
Defines the block direction. This affects the starting and ending positions of the block as well as border-block-end-width
The result of the attribute. For English pages, the inline direction is from left to right, and the block direction is downward.
Instance
Example 1
Set the block direction end border width:
div { border-block-end-style: solid; border-block-end-width: 10px; }
Example 2: Combined with the writing-mode attribute
The position of the block direction end border width is affected by writing-mode
The effect of the attribute:
div { border-block-end-style: solid; writing-mode: vertical-rl; border-block-end-width: 5px; }
CSS syntax
border-block-end-width: medium|thin|thick|length|initial|inherit;
Attribute value
Value | Description |
---|---|
medium | Specifies a medium-width border. Default value. |
thin | Specifies a thin border. |
thick | Specifies a thick border. |
length | Allows you to define the thickness of the border. See:CSS Units. |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Technical details
Default value: | medium |
---|---|
Inheritance: | No |
Animation creation: | Supported. See:Animation-related properties. |
Version: | CSS3 |
JavaScript syntax: | object.style.borderBlockEndWidth="10px" |
Browser support
The numbers in the table represent the first browser version to fully support this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
69.0 | 79.0 | 41.0 | 12.1 | 56.0 |
Related pages
Tutorial:CSS Border
Reference:CSS border attribute
Reference:CSS border-block attribute
Reference:CSS border-block-end attribute
Reference:CSS border-block-end-style attribute
Reference:CSS border-block-start-width attribute
Reference:CSS border-bottom-width attribute
Reference:CSS border-left-width property
Reference:CSS border-right-width property
Reference:CSS border-top-width property
Reference:CSS writing-mode attribute
- Previous Page border-block-end-style
- Next Page border-block-start