Web4College

CSS padding-inline-start property

src

Description

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

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

  • It behaves like padding-bottom or padding-top 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-inline-start : length

Property values

0 lengthDefault

0

There is no thickness of the padding area at the start side of the border box.

padding-inline-start: 0;
Try it

+ve length

20

+ve value represents padding area at the start side of a block.

padding-inline-start: 20px;
Try it

-ve length

-20

The space decreases by 20px at the start of inline i.e the the subsequent content may merge into the element.

padding-inline-start: -20px;
Try it

Applicable to

It applies to all elements