inset-block-end

A logical property that sets the distance from the 'end' of the block axis (usually the 'bottom' in English layouts). It's the logical replacement for 'bottom'.

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

/* Usage Example */
.sticky-footer {
  position: fixed;
  /* Sticks to the bottom of the page in a logical way */
  inset-block-end: 0;
}

/* Syntax */
inset-block-end: top;

/* Global values */
inset-block-end: inherit;
inset-block-end: initial;
inset-block-end: revert;
inset-block-end: revert-layer;
inset-block-end: 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