forked from mbutterick/pollen-tfl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcentered-text.html.pm
24 lines (19 loc) · 1.21 KB
/
centered-text.html.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#lang pollen
◊(define-meta title "centered text")
◊hanging-topic[(topic-from-metas metas)]{It's boring — use sparingly}
◊em{Centered text} is overused. It’s the typographic equivalent of vanilla ice cream — safe but boring. It’s 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.