Alignment, also referred to as justification, is the setting of text flow. As we have already covered, reading is a skill we gain; it is unnatural. Automatic eye movement is one skill we are masters at. As our eyes move from line to line they automatically go back to the same horizontal position we started at. Alignment ensures we send our readers to the right position.
Always have a specific purpose for changing alignment. Using a variety of alignments can create rhythm and motion while simultaneously cluttering up the page and annoying your readers.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris malesuada consectetur magna, et gravida lacus lobortis ac. Fusce ac felis sed lectus faucibus tincidunt. Cras elementum, massa vel dignissim interdum, nisl nisi bibendum lorem, vel fringilla erat erat vitae justo.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris malesuada consectetur magna, et gravida lacus lobortis ac. Fusce ac felis sed lectus faucibus tincidunt. Cras elementum, massa vel dignissim interdum, nisl nisi bibendum lorem, vel fringilla erat erat vitae justo.
When running text is centered, flush-right or aligned in opposition of a particular script, we send our readers eyes to the wrong place. We read from LTR (left-to-right) and anchor our eye on the left margin. In centered or flush-right text, the left margin is ragged or uneven, making finding the next line much harder. Rather than being an automatic act, readers have to consciously search and adjust their eyes to the start of each line. In return, reading becomes slower and more difficult.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris malesuada consectetur magna, et gravida lacus lobortis ac. Fusce ac felis sed lectus faucibus tincidunt. Cras elementum, massa vel dignissim interdum, nisl nisi bibendum lorem, vel fringilla erat erat vitae justo.
Flush-left is aligned along the left margin or gutter. In English and most European languages where words are read LTR text is aligned flush left. Flush-left text is the most legible option; it follows a LTR eye movement and is predictable. It is the default in print and online — it is easier to set and more natural to read.
A rag refers to the irregular or uneven vertical margin of a block of type. In flush-left, the right margin is ragged. In flush-right, the left margin is ragged. In center-aligned text, both the left and right margin are ragged.
A widow is a very short line – usually one word or the end of a hyphenated word – at the end of a paragraph or column. The short line or word leaves too much white space between paragraphs or at the bottom of a page or column. This interrupts the reader’s eye moving from paragraph to paragraph.
An orphan is a word or part of a word at the beginning of a column or a page. This often happens when text flows in a multiple column layout. It results in poor horizontal alignment at the top of the column or page.
You can fix widows and orphans by reworking the rag or editing the copy.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris malesuada consectetur magna, et gravida lacus lobortis ac. Fusce ac felis sed lectus faucibus tincidunt. Cras elementum, massa vel dignissim interdum, nisl nisi bibendum lorem, vel fringilla erat erat vitae justo. Praesent tincidunt rutrum mi, at condimentum sem consectetur vel.
Justified text is flush on both the left and right margin. The even margins give a text block a more formal and geometric appearance. Justified text is the hardest to set; in order for the text to be set flush on both margins requires the adjustment of word-spacing, letter-spacing, and hyphenation on a paragraph level. This tedious process is to combat rivers — the white space created by increasing the spacing between words and letters.
In this example, the block on the left is justified by increasing the space between words. This is the standard way text is justified online and results in rivers — shown by the lines running through the text. The block on the right was manually set by slightly adjusting word-spacing, letter-spacing, and glyph scaling. This is not possible on the Web where you don't have control over line-length, text size, and hyphenation.
“Punctuation marks are mostly whitespace. When the mark is the first character in a block — it leaves too much whitespace disrupting the optical flow of text.”
When Gutenberg was creating his Bible in the 1400’s he developed a style of setting punctuation marks called hanging punctuation or optical alignment to fix this disruption.
Optical Margin Alignment can improve the balance of a block. Optical alignment can be achieved by hanging punctuation marks (such as periods, commas, quotation marks, and dashes) and the edges of letters such as W and A hang outside the text margins. In the example above, the first block looks awkward. This is because the opening double quote at the beginning of the line offsets the margin. By keeping the mark inside our margin, we create a ragged edge on a usually flush block of text. Additionally, it mimics a first-line indent. We address this problem by aligning the margin optically by letting the mark hang outside. Because punctuation marks like the double quote are mostly white space, we create the illusion of a flush left margin.
In InDesign, Optical Margin Alignment is turned on in the story panel. On the Web, however, many designers guess at the negative indent needed to hang punctuation; the average double quote is -0.4em, but the key word there is average, every font is different. You don't have to stab in the dark when hanging punctuation on the Web.
See the Pen Hanging Punctuation by Rhett (@rhettajf) on CodePen.