CSS border-block-start-style Attribute
- Previous Page border-block-start-color
- Next Page border-block-start-width
Definition and Usage
border-block-start-style
The property is used to set the border style at the beginning of the block direction of the element.
CSS border-block-start-style
Property and CSS Property border-bottom-style
border-left-styleborder-bottom-style
border-left-style,
border-right-style and
border-top-style border-block-start-style
Very similar, but
The property depends on the block direction.Note: writing-mode
Defines the block direction. This affects the starting and ending positions of the block and related CSS properties border-block-start-style
The result of the property. For English pages, the inline direction is from left to right, and the block direction is downward.
Example
Example 1
Set the style for the border at the start of the block direction:
div { border-block-start-style: dotted; }
Example 2: Combined with the writing-mode property
The position of the border style at the start of the block direction is affected by writing-mode
Property effect:
div { writing-mode: vertical-rl; border-block-start-style: dotted; }
CSS syntax
border-block-start-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
Property value
Value | Description |
---|---|
none | Default value. Specifies no border. |
hidden | Same as "none", but differs 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 ridge 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 also initial. |
inherit | Inherits this property from its parent element. See also inherit. |
Technical details
Default value: | none |
---|---|
Inheritance: | No |
Animation creation: | Not supported. See also:Animation-related properties. |
Version: | CSS3 |
JavaScript syntax: | object.style.borderBlockStartStyle="dotted" |
Browser support
The numbers in the table represent the browser version that first fully supports 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-end-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-start-color
- Next Page border-block-start-width