# Text Alignment Utility classes for horizontal text alignment. Left, center, right, and justify, with responsive variants for breakpoints, orientation, and bit-depth. ### Usage Control text alignment using the alignment utility classes. Options include left, center, right, and justify alignment. See the [Responsive Features](#responsive-text-alignment) section for breakpoint, orientation, and bit-depth variants. | Class | Description | | --- | --- | | `text--left` | Aligns text to the left (default for most elements) | | `text--center` | Centers text horizontally | | `text--right` | Aligns text to the right | | `text--justify` | Justifies text, creating even edges on both sides | This text is left-aligned. This is the default alignment for most text content. This text is center-aligned. Useful for headings and important content. This text is right-aligned. Often used for numerical data or RTL languages. This text is justified. Creates even text edges on both sides but affects readability. Useful for multi-column text layouts. ![TRMNL Logo](/images/plugins/trmnl--render.svg)TextAlignment ```

Left-aligned text

Center-aligned text

Right-aligned text

Justified text

``` ### Responsive Features Alignment classes support all three responsive systems: size-based breakpoints, orientation-based, and bit-depth variants. #### Breakpoint Prefixes Use breakpoint prefixes like `sm:`, `md:`, `lg:` to apply different alignment per device size class. Responsive alignment Left by default, center on md+, right on lg+ ![TRMNL Logo](/images/plugins/trmnl--render.svg)Text AlignmentResponsive ```

Responsive alignment

Progressive alignment

``` #### Orientation and Size+Orientation Text alignment can adapt to orientation with `portrait:` and `landscape:`, and can be combined with size breakpoints (e.g., `md:portrait:`). Orientation variant Left by default, center in portrait ![TRMNL Logo](/images/plugins/trmnl--render.svg)Text AlignmentOrientation ```

Orientation variant

Left by default, right on md+ portrait

``` #### Bit-Depth Responsive Alignment classes support bit-depth prefixes like `1bit:`, `2bit:`, and `4bit:` to apply different alignment on different display color capabilities. Bit-depth alignment Center by default, right on 2-bit screens ![TRMNL Logo](/images/plugins/trmnl--render.svg)Text AlignmentBit-Depth Responsive ```

Bit-depth alignment

Left by default, center on lg+ 4-bit screens

``` #### Combined Responsive Features Combine size, orientation, and bit-depth modifiers for alignment. Use the pattern `size:orientation:bit-depth:utility` for highly targeted styling. ```

Right on md+ portrait 2-bit screens

Progressive with bit-depth override

``` Previous [ ## Text Scale Scale all framework typography independently of interface geometry ](/framework/docs/3.4/text_scale) Next [ ## Text Color Apply grayscale and chromatic color shades to text elements ](/framework/docs/3.4/text_color)