--- name: typography-text-align description: Controlling text alignment with left, center, right, justify, and logical properties --- # Text Align Utilities for controlling the alignment of text. ## Usage ### Basic alignment Use `text-left`, `text-center`, `text-right`, `text-justify`: ```html
Left aligned
Center aligned
Right aligned
Justified text
``` ### Logical properties Use `text-start` and `text-end` for RTL-aware alignment: ```htmlLeft in LTR
Right in LTR
Right in RTL
Left in RTL
Responsive alignment
``` ## Key Points - `text-left` - aligns to left edge - `text-center` - centers text - `text-right` - aligns to right edge - `text-justify` - justifies text (spaces words evenly) - `text-start` - aligns to start (left in LTR, right in RTL) - `text-end` - aligns to end (right in LTR, left in RTL) - Use logical properties (`text-start`, `text-end`) for internationalization - Common pattern: `text-center` for headings, `text-left` for body text