border-inline

The logical shorthand for setting width, style, and color for both the 'start' and 'end' borders in the inline dimension (left and right in LTR).

It is documented as part of the CSS Logical Properties and Values specification.

/* Usage Example */
.button-alt {
  /* Logical equivalent of setting both left and right borders */
  border-inline: 4px solid #000;
  padding: 0.5rem 1rem;
}

/* Syntax */
border-inline: border-block-start;

/* Global values */
border-inline: inherit;
border-inline: initial;
border-inline: revert;
border-inline: revert-layer;
border-inline: unset;
Widely available Since 2021 95% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.

87+
66+
14.1+
87+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC