How to Align Text in WordPress (Left, Center, Right and Justify)

You wrote a great paragraph, but it sits in the wrong spot. Maybe a quote should be centered, a price should line up on the right, or a heading looks odd on the left.

The good news: aligning text in WordPress takes two clicks in the block editor. You do not need code or a plugin for normal text.

This guide shows you how to align text left, center, right or justified, how to align text inside a table, and when to use each option.

Quick answer

  • Align text: click the block, open Align text in the block toolbar, and pick left, center or right.
  • Justify text: open the block settings sidebar, go to الطباعة, turn on Text alignment from the options menu, and choose Justify.
  • Align text in a table: use Tableberg, a free table block. Select a text element and use Align text, or set Common Elements Alignment for the whole table.
  • Best practice: keep body text left aligned, center only short lines, and right align numbers.

The 4 text alignment options in WordPress

WordPress gives you four ways to line up text. Here is what each one does and when to use it.

تنسيق

What it does

الأفضل لـ

Where to find it

Left

Lines up every line on the left edge

Body text, lists, long paragraphs

Block toolbar or sidebar

Center

Places each line in the middle

Short headings, quotes, buttons, calls to action

Block toolbar or sidebar

Right

Lines up every line on the right edge

Prices, numbers, dates, signatures