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

# relative-align-inline-end

APISummary
## Introduction

Specifies that the current element is aligned with the left/right edges of the parent or sibling element corresponding to [`id`](/next/api/css/properties/relative-id.md).

When [`direction`](/next/api/css/properties/direction.md) is `ltr`, `relative-align-inline-end` is equivalent to [`relative-align-right`](/next/api/css/properties/relative-align-right.md);

When [`direction`](/next/api/css/properties/direction.md) is `rtl/lynx-rtl`,`relative-align-inline-end` is equivalent to [`relative-align-left`](/next/api/css/properties/relative-align-left.md);

## Examples

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

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

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

const RelativeAlignInlineEnd = () => {
  const container1Style = {
    display: "relative" as const,
    relativeLayoutOnce: true,
    direction: "ltr" as const,
    marginBottom: "20px" as const,
  };
  const container2Style = {
    display: "relative" as const,
    relativeLayoutOnce: true,
    direction: "rtl" as const,
  };

  const titleStyle = {
    fontSize: "50rpx" as const,
    alignSelf: "center" as const,
    fontWeight: "900" as const,
    color: "linear-gradient(120deg ,#0095ff 30% ,#42d392 100%)" as const,
  };

  const view1Style = {
    relativeId: "1",
    display: "linear" as const,
    relativeCenter: "horizontal" as const,
    backgroundColor: "lightgreen",
    alignItems: "center" as const,
    textAlign: "center" as const,
  };

  const view2Style = {
    display: "linear" as const,
    relativeAlignInlineEnd: "1",
    alignItems: "center" as const,
    relativeAlignBottom: "parent" as const,
    backgroundColor: "lightblue",
  };

  const view3Style = {
    display: "linear" as const,
    relativeAlignInlineEnd: "parent" as const,
    relativeCenter: "vertical" as const,
    alignItems: "center" as const,
    backgroundColor: "pink",
  };
  const textStyle = {
    fontSize: "35rpx" as const,
    fontWeight: "600" as const,
    textAlign: "center" as const,
  };

  return (
    <scroll-view className="root" scroll-orientation="vertical">
      <text style={titleStyle}>direction: ltr</text>
      <view className="container" style={container1Style}>
        <view style={view1Style}>
          <text style={textStyle}>relative-id: 1</text>
          <text style={textStyle}>relative-center: horizontal</text>
        </view>
        <view style={view2Style}>
          <text style={textStyle}>relative-align-inline-end: 1</text>
          <text style={textStyle}>relative-align-bottom: parent</text>
        </view>
        <view style={view3Style}>
          <text style={textStyle}>relative-align-inline-end: parent</text>
          <text style={textStyle}>relative-center: horizontal</text>
        </view>
      </view>
      <text style={titleStyle}>direction: rtl</text>
      <view className="container" style={container2Style}>
        <view style={view1Style}>
          <text style={textStyle}>relative-id: 1</text>
          <text style={textStyle}>relative-center: horizontal</text>
        </view>
        <view style={view2Style}>
          <text style={textStyle}>relative-align-inline-end: 1</text>
          <text style={textStyle}>relative-align-bottom: parent</text>
        </view>
        <view style={view3Style}>
          <text style={textStyle}>relative-align-inline-end: parent</text>
          <text style={textStyle}>relative-center: horizontal</text>
        </view>
      </view>
    </scroll-view>
  );
};

root.render(<RelativeAlignInlineEnd />);

```

v0.11.0



## Syntax

```css
relative-align-inline-end: parent;
relative-align-inline-end: none;

relative-align-inline-end: 1;
relative-align-inline-end: 2;
```

### Values

The `relative-align-inline-end` property takes the same values as the [`relative-align-left`](/next/api/css/properties/relative-align-left.md) property.

## Formal definition

| Initial value | `none` |
| Applies to | relative items |
| Inherited | no |
| Animatable |  |


## Formal syntax

```
relative-align-inline-end = none | parent | <number>
```

## Differences from the Web

- There is no such style in web.

## Compatibility

**Compatibility Table**

**Query:** `css.properties.relative-align-inline-end`

[Source](https://github.com/lynx-family/lynx/blob/develop/tools/css_generator/css_defines/165-relative-align-inline-end.json)

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

**`relative-align-inline-end`**

Specifies that the current element is aligned with the left/right edges of the parent or sibling element corresponding to id.

**Specifications:**

