padding-inline-start

Introduction

Defines the logical inline start padding of an element, which maps to a physical padding depending on the element's direction. Must be nonnegative.

In LTR mode, padding-inline-start taking the same values as the padding-left. In RTL mode, padding-inline-start taking the same values as the padding-right.

Examples

Syntax

/* <length> values */
padding-inline-start: 0.5em;
padding-inline-start: 0px;
padding-inline-start: 2rpx;

/* <percentage> value */
padding-inline-start: 10%;

Formal definition

Initial value0
Applies toall elements
Inheritedno
Animatable
Percentagesrefer to the width of the containing block

Values

0px

Default value.

<length>

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) of the containing block.

Formal syntax

padding-inline-start =
  <length-percentage [0,∞]>

<length-percentage> =
  <length>      |
  <percentage>

Difference with the Web

  1. writing mode is not supported in Lynx.

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.