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

# letter-spacing

APISummary
## Introduction

The `letter-spacing` CSS property sets the horizontal spacing behavior between text characters.

## Examples

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

**Entry:** `src/letter-spacing`
**Bundle:** `dist/letter-spacing.lynx.bundle`

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

const LetterSpacing = () => {
  const containerStyle = {
    width: "100%",
    height: "100%",
    flexDirection: "column" as const,
  };

  const headerStyle = {
    backgroundColor: "#ccc",
    marginTop: "10px",
  };

  const text1Style = {
    fontSize: "16px",
    letterSpacing: "0px",
  };

  const text2Style = {
    fontSize: "16px",
    letterSpacing: "1px",
  };

  const text3Style = {
    fontSize: "16px",
    letterSpacing: "3rpx",
  };

  return (
    <scroll-view className="root" scroll-orientation="vertical">
      <view className="fixed_area">
        <view style={containerStyle}>
          <text style={headerStyle}>Letter Spacing Test</text>
          <text style={text1Style}>letter-spacing:0px</text>
          <text style={text2Style}>letter-spacing:1px</text>
          <text style={text3Style}>letter-spacing:3rpx</text>
        </view>
      </view>
    </scroll-view>
  );
};

root.render(<LetterSpacing />);

```

v0.11.0



## Syntax

```css
/* <length> values */
letter-spacing: 0.3em;
letter-spacing: 3px;
letter-spacing: 0.3px;
```

### Values

- [`<length>`](/next/api/css/data-type/length.md)
  Specifies extra inter-character space in addition to the default space between characters.

## Formal definition

| Initial value | empty value |
| Applies to | text |
| Inherited | yes |
| Animatable | no |


## Formal syntax

```
<length>
```

## Differences from the Web

- Only support `<length>`.

## Compatibility

**Compatibility Table**

**Query:** `css.properties.letter-spacing`

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

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| letter-spacing | Yes (1.0) | Yes (3.4) | Yes (1.0) | Yes (1.0) | Yes (1.0) | Yes |

**`letter-spacing`**

**Specifications:**

