padding-inline

A logical shorthand for setting both 'padding-inline-start' and 'padding-inline-end'. It's like setting 'padding-left' and 'padding-right' at the same time.

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

/* Usage Example */
.button {
  /* Adds 1.5rem padding to both sides logically */
  padding-inline: 1.5rem;
}

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

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