CSS border-block-end-style attribute
- Previous Page border-block-end-color
- Next Page border-block-end-width
Definition and Usage
border-block-end-style
Properties are used to set the border style at the end of the block direction of the element.
CSS border-block-end-style
Property and border-bottom-style
、border-left-style
、border-right-style
and border-top-style
The attributes are very similar, but border-block-end-style
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-style
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 style for the block direction end border:
div { border-block-end-style: dotted; }
Example 2: Combined with the writing-mode attribute
The position of the block direction end border style 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-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
Attribute value
Value | Description |
---|---|
none | Default value. Specifies no border. |
hidden | Same as "none", but different in border conflict resolution for table elements. |
dotted | Specifies a dotted line border. |
dashed | Specifies a dashed line border. |
solid | Specifies a solid line border. |
double | Specifies a double-line border. |
groove |
Specifies a 3D groove border. The effect depends on the value of border-color. |
ridge |
Specifies a 3D bevel border. The effect depends on the value of border-color. |
inset |
Specifies a 3D inset border. The effect depends on the value of border-color. |
outset |
Specifies a 3D outset border. The effect depends on the value of border-color. |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Technical details
Default value: | none |
---|---|
Inheritance: | No |
Animation creation: | no. Read about animatable |
Version: | CSS3 |
JavaScript syntax: | object.style.borderBlockEndStyle="dotted" |
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 Borders
Reference:CSS border attribute
Reference:CSS border-block attribute
Reference:CSS border-block-style attribute
Reference:CSS border-block-start-style attribute
Reference:CSS border-bottom-style attribute
Reference:CSS border-left-style property
Reference:CSS border-right-style property
Reference:CSS border-top-style property
Reference:CSS writing-mode property
- Previous Page border-block-end-color
- Next Page border-block-end-width