# Text alignment

*noun*

say it: **“TEKST uh-LYNE-ment”** **/tɛkst əˈlaɪnmənt/**

Lining up lines of text along the left edge, the right edge or the center of their box. In CSS, the text-align property sets it.

## What does `text-align` do?

`text-align` lines text up to the left, right or center of its box.

```css
.page-title { text-align: center; }
```

## In a sentence

- “I kept the **text alignment** left for the long paragraphs and centered only the short headline.”

Level: Novice · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/text-alignment
