padding-block-start

A logical property that sets the padding at the start of the block axis. For normal horizontal text, this is the same as 'padding-top'.

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

/* Usage Example */
.article-header {
  /* Adds space at the top of the header logically */
  padding-block-start: 3rem;
}

/* Syntax */
padding-block-start: padding-top;

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