Improves paragraph endings
When the rest of a paragraph is justified, the last line can feel visually abrupt. text-align-last lets you soften that ending or match a more editorial rhythm.
Compare all 7 text-align-last values with live paragraph previews, then copy clean CSS for justified articles, documentation blocks, editorial layouts, and long-form content that needs a more intentional final line.
Best results usually happen when the main block uses text-align: justify. This preview helps you compare how the final line behaves before you paste the rule into your article, prose class, or CMS template.
text-align-last doesThe text-align-last CSS property controls how the final line of a block, or the line before a forced line break, is aligned. It is most valuable when your main text is justified and the last line needs more deliberate visual control.
When the rest of a paragraph is justified, the last line can feel visually abrupt. text-align-last lets you soften that ending or match a more editorial rhythm.
Article pages, knowledge bases, guides, and documentation often benefit from more intentional last-line behavior than the default browser rendering provides.
It complements text-align, writing direction, and editorial spacing decisions, especially when you are tuning a reusable prose component or CMS template.
This property is niche, but when it matters, it noticeably improves polish. These are the most practical places to use it.
Refine the last line in essays, magazine-style posts, and long-form thought pieces where justified body copy needs a cleaner finish.
Improve paragraph rhythm in product docs, onboarding guides, and help center content without rebuilding your typography system.
Test how imported content will wrap inside reusable article components before you ship template changes across a site.
Compare final-line behavior quickly when reviewing a content-heavy landing page, blog redesign, or dark mode typography refresh.
You do not need a full typography rewrite. Use a lightweight workflow to compare values, choose the best fit, and apply the rule only where it improves reading flow.
Pick the paragraph’s main text-align first. Most tests begin with justify, because that is where last-line control creates the clearest difference.
Use the preview grid to scan auto, start, end, left, right, center, and justify side by side instead of guessing from memory.
Narrow the preview to the strongest option and check whether the paragraph ending feels natural for your article, docs page, or content card.
Paste the generated rule into your prose class, markdown renderer, article template, or content component, then test desktop and mobile wraps before publishing.
This is a precision property. It works best when applied intentionally to content systems that already need typographic polish.
Most UI text does not need text-align-last. Reserve it for articles, docs, essays, and other multi-line blocks where final-line rhythm actually affects readability.
A short placeholder sentence can hide awkward results. Preview full paragraphs so the final line reflects real-world wrapping behavior.
The property delivers the most obvious value when the block already uses text-align: justify. That is usually the smartest baseline for comparison.
Last-line alignment can look balanced on desktop and awkward on smaller screens. Verify the final line after responsive width changes, especially in cards and sidebars.
text-align-last controls how the last line of a block element, or the line before a forced break, is aligned. It is commonly paired with text-align: justify for more polished paragraph endings.
Use it when long-form content, documentation, or editorial layouts look awkward at the end of a paragraph. It is especially helpful when justified text needs a more intentional final line.
Common values include auto, start, end, left, right, center, and justify. This generator previews each one so you can compare the effect directly.
No, but justified paragraphs are where the difference is most noticeable. In left-, right-, or center-aligned text, the property can still change the final line, though the visual impact is usually smaller.
Not universally. auto is the safest default, while center, right, or justify are more stylistic choices. The right answer depends on your paragraph width, writing style, and page design.
If you are already polishing paragraph layout, these nearby tools make the next steps faster and keep your typography workflow connected.
Once your paragraph endings look right, the next bottleneck is usually writing and promotion. The fastest follow-up is the Content Creator Toolkit, which helps you create blog drafts, social posts, newsletters, and reusable content workflows around the polished layout you just built.