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-block CSS shorthand property defines the logical block 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-block property may be specified with one or two values. If one value is given, it is used as the value for both padding-block-start and padding-block-end. If two values are given, the first is used for padding-block-start and the second for padding-block-end.
The padding-block property takes the same values as the padding-top property.
The padding values specified by padding-block 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-block |
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.