CSSborder-inline-end Property
Example
Set the width, color and style for the border at the end of the inline direction:
border-inline-end: 10px solid pink;
}
More "Try it Yourself" examples below.
Definition and Usage
Theborder-inline-end property is a shorthand property for these properties:
The CSSborder-inline-end property is very similar to CSS propertiesborder-bottom,border-left,border-right andborder-top, but theborder-inline-end property is dependent on inline direction.
Note: The related CSS propertieswriting-mode,text-orientation anddirection define inline direction. This affects where the start and end of a line is and the result of theborder-inline-end property. For pages in English, inline direction is left to right and block direction is from top to bottom.
| Default value: | medium nonecurrentcolor |
|---|---|
| Inherited: | no |
| Animatable: | yes.Read aboutanimatableTry it |
| Version: | CSS3 |
| JavaScript syntax: | object.style.borderInlineEnd="pink dotted 5px"Try it |
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
| Property | |||||
|---|---|---|---|---|---|
| border-inline-end | 69.0 | 79.0 | 41.0 | 12.1 | 56.0 |
CSS Syntax
Property Values
| Value | Description | Demo |
|---|---|---|
border-inline-end-width | Specifies the width of an element's border at the end of the inline direction. Default value is "medium" | Demo ❯ |
border-inline-end-style | Specifies the style of an element's border at the end of the inline direction. Default value is "none" | Demo ❯ |
border-inline-end-color | Specifies the color of an element's border at the end of the inline direction. Default value is the current color of the border | Demo ❯ |
| initial | Sets this property to its default value.Read aboutinitial | |
| inherit | Inherits this property from its parent element.Read aboutinherit |
More Examples
With writing-mode property
The position of the border at the end of the inline direction is affected by thewriting-mode property:
writing-mode: vertical-rl;
border-inline-end: 5px solid blue;
}
With direction property
The position of the borders at the end of the inline direction is affected by thedirection property:
direction: rtl;
border-inline-end: 5px solid hotpink;
}
Related Pages
CSS tutorial:CSS Border
CSS border property:CSS Border property
CSS border-inline property:CSS Border-inline property
CSS border-inline-end-style property:CSS Border-inline-end-style property
CSS border-inline-start-color property:CSS Border-inline-start-color property
CSS border-bottom-color property:CSS Border-bottom-color property
CSS border-left-color property:CSS Border-left-color property
CSS border-right-color property:CSS Border-right-color property
CSS border-top-color property:CSS Border-top-color property
CSS direction property:CSS Direction property
CSS text-orientation property:CSS Text-orientation property
CSS writing-mode property:CSS Writing-mode property

