Skip to content
BENIBIX Learn

Text Alignment

Design🔤 TypographyType Spacing

Also known as Justified Text, Flush Left, Ragged Right

Which edge lines of text line up on: left, right, center or both.

Think of it like

It is like lining up books on a shelf. Push them to one side, or to the middle.

Example

A blog switches from justified to left-aligned text. The odd wide gaps between words disappear.

Why it matters

A clean starting edge helps the eye find the start of every line.

Definition

Text alignment is which edge the lines of a paragraph line up on. Left-aligned text has a straight left edge and a ragged right one. Centered text works for a few short lines. Justified text stretches every line to both edges. It looks neat, but on screens it can leave wide gaps called rivers. Persian and Arabic text lines up on the right instead.

Example code

css
p {
  text-align: start;
}
start means left in English and right in Persian, so one rule works for both.

Common mistake

Justifying text on narrow phone screens. The words spread out with big holes between them.

Key takeaways

  1. 1
    Start edge for reading. Left in English, right in Persian.
  2. 2
    Center for short bits. Titles and a few lines.
  3. 3
    Justify with care. Watch for rivers of space.

Learn it properly