Why you shouldn’t align html justify

Here’s an example of normally aligned website text. As you can see, the text is aligned to the left margin meaning that not all of the text will align to the right margin.

AND

Here’s an example of justified website text. As you can see, the text is aligned to both the left margin and right margins, meaning that each line will be the same length.

Martin Jarvis

Martin says... Don't Justify Align

I was recently asked by one of my WordPress clients to justify fully the text on their website rather than to align left. Justification (or full alignment or double justification) means that each line in your web page is the same length (except perhaps for the last line), with the text on those lines being spread out to meet a uniform line width and to align with both the left and right margins.

The html code (or attribute) to achieve this (for those of you who are interested) is align=”justify”.

I advised my client against justifying the text on their web page. I think that most website readers prefer to have their text set out in fairly narrow columns, and with the text aligned left. This makes it easier to read.

Justified Alignment is is actually non-standard for the web, and the W3C standards commitee state the following :

Many people with cognitive disabilities have a great deal of trouble with blocks of text that are justified (aligned to both the left and the right margins). The spaces between words create “rivers of white” running down the page, which can make the text difficult for some people to read. This failure describes situations where this confusing text layout occurs. The best way to avoid this problem is not to create text layout that is fully justified (aligned to both the left and the right margins).

Of course, it’s up to you as a website owner to make the final decision on the text layout and other styles on your site, and don’t forget that text alignment has worked successfully for newspapers for many decades.

2 Responses to “Why you shouldn’t align html justify”

  1. Frank Hileman September 20, 2012 at 6:24 pm #

    The wider the width of the paragraphs, and the better the justification algorithm, the less “rivers of white” is a problem. The IE “newspaper” form of justification is particularly good.

  2. Laura December 12, 2012 at 8:30 pm #

    I find that with no white space at the left margin the page is difficult to read,as the letters look as though they bleed into the border line. I usually wont bother reading it at all. I find if I view a page in ‘no style’ rather than default, it looks better.

Leave a Reply

We're really pleased you want to comment. As a reward we'll include a link to one of your own blog posts. Write your comment as normal, then we'll display your recent blog posts for you to choose from. Un-check the box to opt out.