padding-inline-end

A logical property that sets the padding at the end of the inline axis. For left-to-right text, this is 'padding-right'.

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

/* Usage Example */
.sidebar-link {
  /* Adds space on the right (for LTR) or left (for RTL) logically */
  padding-inline-end: 15px;
}

/* Syntax */
padding-inline-end: padding-top;

/* Global values */
padding-inline-end: inherit;
padding-inline-end: initial;
padding-inline-end: revert;
padding-inline-end: revert-layer;
padding-inline-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.

69+
41+
12.1+
79+
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