You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
pollen-tfl/centered-text.html.pm

24 lines
1.2 KiB
Perl

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#lang pollen
(define-meta title "centered text")
hanging-topic[(topic-from-metas metas)]{It's boring — use sparingly}
◊em{Centered text} is overused. Its the typographic equivalent of vanilla ice creamsafe but boring. Its rare to see text centered in a book, newspaper, or magazine, except for the occasional headline or title. Asymmetry is nothing to fear.
Yet it is feared. So for all the fans of centered text, a poem:
◊p['((style "text-align: center;"))]{strong{An Ode to Centered Text}
Centered text is acceptable when used for short phrases or titles.
Or in documents, you can center major section headers
like Introduction, Argument, and Conclusion.
(It may be conventional in your jurisdiction
to center certain text in court filings.)
If you enjoy centering text, then
you should learn to use the
xref{hard line break} so
your lines start
in sensible
places.
OK?}
Whole text blocks, including sentence-length headings in court filings, should not be centered. Centering makes text blocks difficult to read because both edges of the text block are uneven. Centered text blocks are also difficult to align with other page elements. See xref{headings} for better options.