> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# padding-inline-end

APISummary
## Introduction

Defines the logical inline end padding of an element, which maps to a physical padding depending on the element's [`direction`](/next/api/css/properties/direction.md). Must be nonnegative.

In `LTR` mode, `padding-inline-end` taking the same values as the [`padding-right`](/next/api/css/properties/padding-right.md).
In `RTL` mode, `padding-inline-end` taking the same values as the [`padding-left`](/next/api/css/properties/padding-left.md).

## Examples

**This is an example below: css-api**

**Entry:** `src/padding-inline-end`
**Bundle:** `dist/padding-inline-end.lynx.bundle`

```tsx
import { root, useState } from "@lynx-js/react";
import "./index.scss";

const PaddingInlineEnd = () => {
  const [rtl, setRtl] = useState(false);

  const containerStyle = {
    direction: rtl ? "rtl" : "ltr" as "rtl" | "ltr",
    paddingInlineStart: "10px",
    paddingInlineEnd: "20px",
  };

  return (
    <>
      <view className="con" bindtap={() => setRtl(!rtl)} style={containerStyle}>
        <text className="intro">1</text>
        <text className="intro2">2</text>
      </view>
      <text>Click above to switch, current {rtl ? "rtl" : "ltr"}</text>
    </>
  );
};

root.render(<PaddingInlineEnd />);

```

v0.11.0



## Syntax

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

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

### 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](https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block).

## Formal definition

| Initial value | 0 |
| Applies to | all elements |
| Inherited | no |
| Animatable |  |
| Percentages | refer to the width of the containing block |


## Formal syntax

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

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

## Differences from the Web

1. `writing mode` is not supported in Lynx.

## Compatibility

**Compatibility Table**

**Query:** `css.properties.padding-inline-end`

[Source](https://github.com/lynx-family/lynx/blob/develop/tools/css_generator/css_defines/153-padding-inline-end.json) · [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-end)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| padding-inline-end | Yes (2.0) | Yes (3.4) | Yes (2.0) | Yes (2.0) | Yes (2.0) | Yes |

**`padding-inline-end`**

**Specifications:**

