CSS border-inline-start-style property
- Previous page border-inline-start-color
- Next Page border-inline-start-width
Definition and usage
border-inline-start-style
property setting the border style of the element at the starting point of the inline direction.
CSS's border-inline-start-style
The property is related to border-bottom-style
、border-left-style
、border-right-style
and border-top-style
The properties are very similar, but border-inline-start-style
The property depends on the inline direction.
Note:Relevant CSS properties writing-mode
、text-orientation
and direction
Defines the inline direction. This affects the start and end positions of a line, as well as border-inline-start-style
Attribute result. 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 inline direction start border:
div { border-inline-start-style: dotted; }
Example 2: Combined with the writing-mode attribute
The position of the inline direction start border is affected by writing-mode
Attribute impact:
div { writing-mode: vertical-rl; border-inline-start-style: dotted; }
Example 3: Combined with the direction attribute
The position of the inline direction start and end borders is affected by direction
Attribute impact:
div { direction: rtl; border-inline-start-style: dotted; }
CSS syntax
border-inline-start-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 differs in table element border conflict resolution. |
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 grooved border. The effect depends on the value of border-color. |
ridge |
Specifies a 3D raised 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: | Not supported. See:Animation-related properties. |
Version: | CSS3 |
JavaScript syntax: | object.style.borderInlineStartStyle="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 Border
Reference:CSS border Attribute
Reference:CSS border-inline Attribute
Reference:CSS border-inline-end-style Attribute
Reference:CSS border-inline-start-style property
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 direction attribute
Reference:CSS text-orientation attribute
Reference:CSS writing-mode attribute
- Previous page border-inline-start-color
- Next Page border-inline-start-width