CSS padding-block-start property

Description

It is a logical property that defines space at the start of content area inside a box. The selection of start side depends on the writing-mode.

  • It behaves like padding-top for the horizontal-tb writing mode.

  • It behaves like padding-right or padding-left for the vertical-rl and vertical-lr writing-mode respectively.

Change the direction of flow of text.

horizontal-tb vertical-lr vertical-rl

Syntax

padding-block-start : +ve length

Property values

0 lengthDefault

There is no space at the start of content inside a box.

padding-block-start: 0;

+ve length

+ve value represents space at the start of content inside a box.

padding-block-start: 20px;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
Check the behavior of padding-block-start for different values of writing mode.
×

Ctrl+D