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

# deprecated grid-row-span

APISummary
:::warning
This API is deprecated.
:::

## Introduction

Contributes a grid span to the grid item's placement.
If there are [`grid-row-start`](/next/api/css/properties/grid-row-start.md) and [`grid-row-end`](/next/api/css/properties/grid-row-end.md), this css property will be overridden.

## Examples

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

**Entry:** `src/grid-row-span`
**Bundle:** `dist/grid-row-span.lynx.bundle`

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

const GridRowSpan = () => {
  const titleStyle = {
    fontSize: "45rpx" as const,
    fontWeight: "900" as const,
    alignSelf: "center" as const,
    color: "linear-gradient(to right, rgb(255,53,26), rgb(0,235,235))" as const,
  };

  return (
    <>
      <text style={titleStyle}>grid-row-span: 1</text>
      <view className="container">
        <text
          className="item"
          style={{
            backgroundColor: "rgb(255,53,26)",
            // @ts-expect-error TODO(types): Support gridRowSpan in `@lynx-js/types`
            gridRowSpan: "1",
          }}
        >
          ONE
        </text>
        <text className="item">TWO</text>
        <text className="item">THREE</text>
      </view>

      <text style={titleStyle}>grid-row-span: 2</text>
      <view className="container">
        <text
          className="item"
          style={{
            backgroundColor: "rgb(255,53,26)",
            // @ts-expect-error TODO(types): Support gridRowSpan in `@lynx-js/types`
            gridRowSpan: "2",
          }}
        >
          ONE
        </text>
        <text className="item">TWO</text>
        <text className="item">THREE</text>
      </view>

      <text style={titleStyle}>grid-row-span: 3</text>
      <view className="container">
        <text
          className="item"
          style={{
            backgroundColor: "rgb(255,53,26)",
            // @ts-expect-error TODO(types): Support gridRowSpan in `@lynx-js/types`
            gridRowSpan: "3",
          }}
        >
          ONE
        </text>
        <text className="item">TWO</text>
        <text className="item">THREE</text>
      </view>
    </>
  );
};

root.render(<GridRowSpan />);

```

v0.11.0



## Syntax

```css
/* <number> values */
grid-row-span: 1;
grid-row-span: 2;
```

### Values

- `<number>`

  Contributes a grid span to the grid item's placement.

## Formal definition

| Initial value | `1` |
| Applies to | grid items |
| Inherited | no |
| Animatable |  |


## Formal syntax

```
grid-row-span = <number>
```

## Differences from the Web

- There is no such style in Web.

## Notes

- When `grid-row-start` and `grid-row-end` specify two distinct grid lines, the row span is determined by the distance between those lines, and `grid-row-span` is ignored. The following item spans three rows:

  ```css
  grid-row-start: 2;
  grid-row-end: 5;
  grid-row-span: 1;
  ```

- Do not combine `grid-row-span` with `span <number>` in `grid-row-start` or `grid-row-end`. Both specify the row span and can override each other. The following declarations specify conflicting spans of three rows and one row:

  ```css
  grid-row-start: 2;
  grid-row-end: span 3;
  grid-row-span: 1;
  ```

## Compatibility

**Compatibility Table**

**Query:** `css.properties.grid-row-span`

[Source](https://github.com/lynx-family/lynx/blob/develop/tools/css_generator/css_defines/176-grid-row-span.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| grid-row-span | Yes (2.1) | Yes (3.4) | Yes (2.1) | Yes (2.1) | Yes (2.1) | No |

**`grid-row-span`**

**Specifications:**

- **Web — Not supported:** Use the standard grid-column or grid-row span syntax; this native property is not translated by Web Lynx.

