--- url: "https://www.w3.org/WAI/WCAG22/Techniques/failures/F88" titulek: "F88: Failure of Success Criterion 1.4.8 due to using text that is justified (aligned to both the left and the right margins) | WAI | W3C" h1: "Technique F88:Failure of Success Criterion 1.4.8 due to using text that is justified (aligned to both the left and the right margins)" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:31:43" znaku: 2148 slov: 336 kodovani: "utf-8" sha256: "4930d25b5fd997742926a618ac30b39fa4d061ad29b0755e06f698fa61f6d52a" --- # Technique F88:Failure of Success Criterion 1.4.8 due to using text that is justified (aligned to both the left and the right margins) ## About this Technique This technique relates to [1.4.8 Visual Presentation](https://www.w3.org/WAI/WCAG22/Understanding/visual-presentation) (**Failure**). This failure applies to all technologies. Failure techniques show examples of how content can fail particular WCAG success criteria. However, content may still satisfy those criteria if it includes equivalent/alternative content or functionality that **does** meet the normative requirements. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description 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). ## Examples ### Example 1 In the following example of a failure, the HTML `align` attribute is used to create justified text. ```
Peter Piper picked a peck of pickled peppers A peck of pickled peppers Peter Piper picked If Peter Piper picked a peck of pickled peppers Where's the peck of pickled peppers Peter Piper picked?
``` ### Example 2 In this example of a failure, the CSS text-align property is used to create justified text. ``` p {text-align: justify} ``` ```How much wood would a woodchuck chuck if a woodchuck could chuck wood? He would chuck, he would, as much as he could, and chuck as much wood As a woodchuck would if a woodchuck could chuck wood.
``` ## Tests ### Procedure 1. Open the page in a common browser. 2. Verify that content is not justified (aligned to both the left and the right margins). ### Expected Results - If check #2 is false, then this failure condition applies and the content fails to meet Success Criterion 1.4.8. Back to Top