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

# inset-inline-start

APISummary
## Introduction

The `inset-inline-start` CSS property defines the logical inline start inset of an element, which maps to a physical offset depstarting on the element's directionality. It corresponds to the [`right`](/next/api/css/properties/right.md) or [`left`](/next/api/css/properties/left.md) property depstarting on the values defined for [`direction`](/next/api/css/properties/direction.md).

In `LTR`, it corresponds to the [`left`](/next/api/css/properties/left.md) property.
In `RTL`, it corresponds to the [`right`](/next/api/css/properties/right.md) property.

## Examples

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

**Entry:** `src/inset-inline-start`
**Bundle:** `dist/inset-inline-start.lynx.bundle`

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

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

  const containerStyle = {
    direction: rtl ? "rtl" : "ltr" as "rtl" | "ltr",
  };

  const introStyle = {
    insetInlineStart: "50px",
    insetInlineEnd: "20px",
  };

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

root.render(<InsetInlineStart />);

```

v0.11.0



## Syntax

```css
/* <length> values */
inset-inline-start: 3px;
inset-inline-start: 2rpx;
inset-inline-start: 2.4em;
inset-inline-start: 3rem;

inset-inline-start: 10%;

/* Keyword value */
inset-inline-start: auto;

/* calc */
inset-inline-start: calc(1px + 1px);
```

### Values

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

## Formal definition

| Initial value | auto |
| Applies to | all elements |
| Inherited | no |
| Animatable |  |
| Percentages | logical-width of containing block |


## Formal syntax

```
inset-inline-start =
  auto                 |
  <length-percentage>

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

## Differences from the Web

- In Lynx, `writing-mode` is not supported.

## Compatibility

**Compatibility Table**

**Query:** `css.properties.inset-inline-start`

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

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| inset-inline-start | Yes (2.0) | Yes (3.4) | Yes (2.0) | Yes (2.0) | Yes (2.0) | Yes |

**`inset-inline-start`**

The inset-inline-start CSS property defines the logical inline start inset of an element, which maps to a physical offset depending on the element's directionality.

**Specifications:**

