Atributo border-block-end-width do CSS
- Página anterior border-block-end-style
- Próxima página 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 similar 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 and 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:Unidades CSS. |
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:Borda CSS
Referência:Atributo border do CSS
Referência:Atributo border-block do CSS
Referência:Atributo border-block-end do CSS
Referência:Atributo border-block-end-style do CSS
Referência:Atributo border-block-start-width do CSS
Referência:Atributo border-bottom-width do CSS
Referência:Atributo border-left-width CSS
Referência:Atributo border-right-width CSS
Referência:Atributo border-top-width CSS
Referência:A propriedade CSS writing-mode
- Página anterior border-block-end-style
- Próxima página border-block-start