CSS border-inline Property

❮ Previous Reference Next ❯


.example1 {
  border-inline: 5px dashed blue;

.example2 {
  writing-mode: vertical-rl;
  border-inline: 5px dashed blue;

Hello World!
Hello World!


The border-inline CSS property is a shorthand property for setting the individual logical inline border property values in a single place in the style sheet.

The border-inline property is a shorthand for the following CSS properties:

The physical borders to which border-inline maps depends on the element's writing mode, directionality, and text orientation. It corresponds to the border-top and border-bottom or border-right, and border-left properties, depending on the values defined for writing-mode , direction, and text-orientation.

The borders in the other dimension can be set with border-block, which sets border-block-start, and border-block-end.

Default value:medium none currentcolor
JavaScript syntax:
object.style.border-inline="[border-inline-width border-inline-style border-inline-color]|initial|inherit|revert|revert-layer|unset";

Standard Syntax

border-inline: [border-inline-width border-inline-style border-inline-color]|initial|inherit|revert|revert-layer|unset;

Browser Support


Property Values

The following table describes the values of this property:

Value Description
border-inline-width Specifies the width of the border inline.
border-inline-style Specifies the style of the border inline.
border-inline-color Specifies the color of the border inline.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.

Default CSS Property Values

selectors {
  border-inline: medium none currentcolor;
❮ Previous Reference Next ❯