start
Logical alignment that follows writing direction.
Text alignment controls reading flow and visual balance. It should support scanning, not become a decorative habit.
.article { text-align: start; }
.price { text-align: end; }
Typography & Visual Style
Text alignment changes where each line begins and ends. That affects reading speed, scanning and visual order.
Left-aligned text is usually easiest for long paragraphs in left-to-right languages because every line starts from the same edge.
Centered text can work for short hero copy or labels, but long centered paragraphs become harder to read because the starting point keeps moving.
Logical alignment that follows writing direction.
Common in left-to-right layouts, especially long text.
Useful for short, controlled text blocks.
Useful for numbers, tables or right-to-left contexts.
Visual model
Typography and visual style are where CSS starts to feel like design. These models turn subjective choices into reusable decisions you can explain, test and improve.
Examples
.article { text-align: start; }
.hero-intro { text-align: center; max-width: 42rem; }
.price { text-align: end; }
body {
text-align: center;
}
.article p {
max-width: 70ch;
}
Rules that matter
A beautiful one-off style is not enough. The goal is a visual system that keeps working when the site grows, content changes and new pages are added.
Stable line starts make paragraphs easier to read.
Centered paragraphs become tiring quickly.
text-align: start adapts better than left for international layouts.
Tables and prices often benefit from end alignment.
Use flex or grid for component alignment.
Alignment depends on width and wrapping.
Production thinking
Alignment guides the eye. Bad alignment makes users work harder before they even understand the content.
Long centered text can reduce readability for many users. Keep reading patterns predictable.
Set alignment at the right level. Do not apply global center alignment and fight it everywhere else.
Readable content structure supports users who arrive from search and need quick clarity.
Live code lab
The preview runs in an isolated iframe. Links and forms stay inside the practice area, so you can experiment without leaving the lesson.
Mini assignment
Practice assignment
Try it yourself
Self-check
Answer these questions before moving on. If your answer is vague, change the lab values and judge the visual result again.
Senior audit upgrade
left and right are physical. start and end follow the writing direction, which is safer for international interfaces.
Aligns to the start edge in LTR and RTL contexts.
Centered text works for short display copy, not long paragraphs.
Alignment is a readability choice before it is a style choice.