Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
The padding-inline CSS shorthand property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation.
This property is a shorthand for the following CSS properties:
The padding-inline property may be specified with one or two values. If one value is given, it is used as the value for both padding-inline-start and padding-inline-end. If two values are given, the first is used for padding-inline-start and the second for padding-inline-end.
The size of the padding as a fixed value. Must be nonnegative.
<percentage>The size of the padding as a percentage, relative to the inline size (width in a horizontal language, defined by writing-mode) of the containing block. Must be nonnegative.
The padding values specified by padding-inline can be equivalent to the padding-top and padding-bottom properties or the padding-right and padding-left properties, depending on the values defined for writing-mode, direction, and text-orientation.
| as each of the properties of the shorthand: |
| all elements, except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column |
| no |
| logical-width of containing block |
| as each of the properties of the shorthand: |
| a length |
| CSS Logical Properties and Values Module Level 1 # propdef-padding-inline |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Apr 20, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.