border-inline-width

Sets the thickness of both logical inline borders (left and right) simultaneously. A convenient logical shorthand for symmetrical horizontal borders.

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

/* Usage Example */
.input-group {
  border-inline-style: solid;
  border-inline-width: 2px;
  border-inline-color: #333;
}

/* Syntax */
border-inline-width: border-top-width;

/* Global values */
border-inline-width: inherit;
border-inline-width: initial;
border-inline-width: revert;
border-inline-width: revert-layer;
border-inline-width: 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