inset-inline-start

A logical property that sets the distance from the 'start' of the inline axis (usually the 'left' in LTR or 'right' in RTL). It's the logical replacement for 'left'.

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

/* Usage Example */
.floating-label {
  position: absolute;
  /* Positions at the start of the line (left in English, right in Hebrew) */
  inset-inline-start: 1rem;
  inset-block-start: -0.5rem;
}

/* Syntax */
inset-inline-start: top;

/* Global values */
inset-inline-start: inherit;
inset-inline-start: initial;
inset-inline-start: revert;
inset-inline-start: revert-layer;
inset-inline-start: 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+
63+
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