Web Design & UI/UX8 min read

Should You Center Text in UI Design? Not Body Text

Left-align paragraphs. Center only one or two short lines, keep one edge per card, and align body text to the right in Arabic and Hebrew. Side by side examples and CSS inside.

By Boone
XLinkedIn
Should You Center Text in UI Design? Not Body Text

Centered text looks tidy in a mockup and gets tiring the moment someone has to read it. Below are the cases where centering works, the cases where it does not, and the CSS for both.

Why people center body text

Centering is the quickest way to make a screen look balanced. There is equal space on both sides, nothing feels pushed into a corner, and a short title looks great that way. The habit then spreads from the title to the text under it, and from one card to the whole page.

The trouble is that a designer looks at the block as a shape, and a reader goes through it line by line. The shape is symmetrical. The reading is not.

Fix 1: left-align paragraphs

Centered

A help article about cancelling a plan with the heading and two paragraphs centered, so each line begins at a different point

Left aligned

The same help article with the heading and both paragraphs aligned to one left edge
Same words, same size, same width. On the left the lines are centered, so the left side of the block is jagged. On the right every line begins on one straight edge.

When you finish a line, your eye jumps back to find the next one. With left-aligned text it always returns to the same spot. With centered text the spot moves every time, and you have to search for it. WebAIM puts it plainly: long blocks of centered text make each new line begin in a slightly different location.

Where each line starts

Here is the same article with a mark at the start of every body line.

Starts wander

The centered article with a blue mark at the start of each body line, the marks scattered across the left side

Starts hold

The left aligned article with a blue mark at the start of each body line, the marks stacked in one vertical column
We measured both renders. The seven centered body lines start in six different places, spread across 97 px of a 608 px column. The seven left-aligned lines all start in the same place.

This applies wherever text runs on: help articles, onboarding explanations, product descriptions, terms, emails and long tooltips. If it wraps into a paragraph, give it one starting edge.

Do not swap centering for full justification either. Justified text straightens both sides by stretching the gaps between words, and WCAG 2.2, success criterion 1.4.8, a AAA criterion, calls for a way to read blocks of text without justification. Left-aligned with a ragged right side is the safe default. The width of the column matters too, which we cover in best line length for reading.

Fix 2: center only short lines

Five centered lines

A booking confirmed screen with a green check and five centered lines of text holding the date, party size, name and change policy

One line and rows

A booking confirmed screen with a green check, one short centered line, and the date, guests, name and change policy in label and value rows
Both screens carry the same booking. On the left the facts are buried in a centered paragraph. On the right one short line says the thing that matters and the details sit in rows you can scan.

Centering is not wrong. A title, a single sentence on a success screen, or the message on an empty state is short enough that the eye barely has to travel back. Centering also suits those screens because there is one thing to look at and it sits in the middle.

We draw the line at one or two short lines. That is our rule of thumb, not a standard. The check is simple: preview the screen at your narrowest width and with your longest real content. A sentence that is one line on a laptop can be four on a small phone, and a translated one can run longer than the English.

When the text grows past that, do not just flip it to the left. Ask what is in it. Dates, amounts, names and limits are data, and data reads better as rows: label on one edge, value on the other. The reader finds the date without reading about the name.

Fix 3: keep one edge per card

Two edges in one card

Two settings cards, each with a centered icon and title above left aligned description text and a left aligned action

One edge

The same two settings cards with icon, title, description and action all starting on the same left edge
On the left the icon and title are centered while the text and the action start at the side. On the right all four parts start on one line.

A centered title over left-aligned text reads as two blocks that happen to share a background. The eye starts in the middle, then has to travel to the side to carry on.

With one edge, the card reads top to bottom: icon, title, description, action. Stack two or three of these and the edge continues down the screen, so the page looks ordered without any extra lines or boxes. The same applies to pricing cards, feature lists, dialogs with more than a sentence in them, and form sections. For forms in particular, see form design best practices.

Align to the start edge, not always left

"Left-align" is shorthand for English. The real rule is to align body text to the edge where reading starts. Arabic and Hebrew are read right to left, so their lines start on the right, and the text aligns there.

English: starts left

A settings list in English with titles and descriptions aligned to the left edge

Arabic: starts right

The same settings list in Arabic with titles and descriptions aligned to the right edge
Neither side is the wrong one here. Each list holds one straight edge on the side its reader starts from.

If your product may ever ship in a right-to-left language, build with start and end from the first day. Set the direction on the document with the dir attribute, as the W3C guide to right-to-left markup describes, and let the alignment follow it.

The cheat sheet

TextAlign (English)Why
ParagraphsLeftEvery line starts on one edge
A title over textLeftIt shares the edge of the text
Form labelsLeftThey line up with their fields
One or two short linesCenterThe eye barely travels back
Everything in a cardOne edgeThe card reads as one block
Arabic and Hebrew body textRightReading starts on the right

Hand this to your developer

css
/* Body text follows the reading direction: left in English, right in Arabic */ p, li, label, .card { text-align: start; } /* Centering is opt-in, for one or two short lines only */ .status-title, .status-line { text-align: center; } /* Details go in rows: label at the start, value at the end */ .detail-row { display: flex; justify-content: space-between; gap: 1rem; } .detail-row .value { text-align: end; }
html
<html lang="ar" dir="rtl">

text-align: start resolves to left in a left-to-right layout and right in a right-to-left one. The common bug is a text-align: center set on a wrapper, which every paragraph inside then inherits. Put the centering on the short lines themselves.

FAQ

Should you center text in UI design?

Only short text. A title, one or two short lines on a success screen or an empty state can be centered. Paragraphs should align to the edge where reading starts.

Why is centered text harder to read?

Each line starts in a different place, so the eye has to look for the beginning of the next line every time. The longer the block, the more often that happens.

When should you center align text?

When there is one short message and little else competing with it: a headline, a confirmation, an empty state. If it wraps to three lines or more on a phone, shorten it or align it to the start edge.

Should a card title be centered?

Not if the text under it is left-aligned. Keep the icon, title, description and action on one edge. A card with only an icon and a short label can be fully centered.

Is justified text better than centered text?

No. Justification stretches the spaces between words to straighten both sides. WCAG 2.2 criterion 1.4.8, at level AAA, calls for a way to read blocks of text without justification.

Which way should Arabic and Hebrew text align?

To the right, where their lines start. In CSS, text-align: start with dir="rtl" handles it.

Sources

More from Brainy Papers

Keep reading