<!--
{
  "documentType" : "article",
  "framework" : "USD",
  "identifier" : "/documentation/USD/horizontalalignment",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "horizontalAlignment"
}
-->

# horizontalAlignment

An option that controls the text’s horizontal placement within its bounding box.

## Discussion

The default value is `center`.

### Horizontal Alignments

- `left`: Left-aligns each line of text.
- `center`: Center-aligns each line of text.
- `right`: Right-aligns each line of text.
- `justified`: Left- and right-aligns the text by adding additional spaces between words.

### Declaration

```other
token horizontalAlignment = "center" (
    allowedTokens = ["left", "center", "right", "justified"]
)
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)