> 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-bottom

APISummary
## Introduction

In [relative-layout](/next/guide/ui/layout/relative-layout.md), specifies that the current element is aligned with the bottom edge of the parent or sibling element corresponding to [`id`](/next/api/css/properties/relative-id.md).

## Examples

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

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

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

const RelativeAlignBottom = () => {
  const containerStyle = {
    display: "relative" as const,
  };

  const firstViewStyle = {
    display: "linear" as const,
    relativeId: "1",
    relativeCenter: "vertical" as const,
    backgroundColor: "lightgreen",
    alignItems: "center" as const,
    width: "40%",
  };

  const secondViewStyle = {
    display: "linear" as const,
    relativeAlignBottom: "1",
    relativeAlignRight: "parent",
    backgroundColor: "lightblue",
    alignItems: "center" as const,
    width: "40%",
  };

  const thirdViewStyle = {
    relativeAlignBottom: "parent" as const,
    backgroundColor: "pink",
  };

  const textStyle = {
    fontSize: "35rpx" as const,
    fontWeight: "600" as const,
    textAlign: "center" as const,
  };

  return (
    <view className="container" style={containerStyle}>
      <view style={firstViewStyle}>
        <text style={textStyle}>relative-id: 1;</text>
        <text style={textStyle}>relative-center: vertical</text>
      </view>
      <view style={secondViewStyle}>
        <text style={textStyle}>relative-align-bottom: 1;</text>
        <text style={textStyle}>relative-align-right: parent</text>
      </view>
      <view style={thirdViewStyle}>
        <text style={textStyle}>relative-align-bottom: parent</text>
      </view>
    </view>
  );
};

root.render(<RelativeAlignBottom />);

```

v0.11.0



## Syntax

```css
relative-align-bottom: parent;
relative-align-bottom: none;

relative-align-bottom: 1;
relative-align-bottom: 2;
```

### Values

- `none`

  **Default Value**. Does not align on the bottom edge.

- `parent`

  The bottom edge is aligned with the parent element.

- `<number>`

  `int` only. The bottom edge is aligned with the sibling element corresponding to this value(refer to [`relative-id`](/next/api/css/properties/relative-id.md)).

  :::info
  Attention please when setting [`relative-id`](/next/api/css/properties/relative-id.md): `-1` and `0` are special values. `-1` is the default value, indicating that the current element will not be considered as the alignment reference standard for sibling elements. Using `0` as an element ID is not allowed, as it will result in unexpected behavior.
  :::

## Formal definition

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


## Formal syntax

```
relative-align-bottom = none | parent | <number>
```

## Differences from the Web

- There is no such style in web.

## Compatibility

**Compatibility Table**

**Query:** `css.properties.relative-align-bottom`

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

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| relative-align-bottom | Yes (1.4) | Yes (3.4) | Yes (1.4) | Yes (1.4) | Yes (1.4) | No |

**`relative-align-bottom`**

Specifies that the current element is aligned with the bottom edge of the parent or sibling element corresponding to id.

**Specifications:**

