«

»

Jan 21

Justification and Orphans with paragraphs displayed on the web

What do you know! You can fully justify text using CSS (text-align: justify). You can also control orphans (single words on a line at the end of a paragraph) by adding a <span> element and setting the white-space style to no-wrap (white-space: nowrap). Who knew! As a note, the Chicago Manual of Style is silent on orphans and how many words you should include to avoid orphans. In general I've seen the requirement of 5 characters plus an ending punctuation mark. But, that's not a rule, and Kathie didn't want any single-word lines in her paragraphs. So, I just went through and spanned the last few words of each paragraph. That did the trick.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>