All technologies that support CSS
This technique relates to:
This technique describes how to align blocks of text either left or right by setting the CSS text-align
property.
In the following example, text is aligned left. In the style sheet, define the class:
Example Code:
p.left {text-align: left}
In the content call the up the class.
Example Code:
<p class="left"> Lorem ipsum dolor sit …</p>
In the following example, text is aligned right.
Example Code:
p.right {text-align: right}
In the content call the up the class.
Example Code:
<p class="right"> Lorem ipsum dolor sit …</p>
Check that the text is aligned either left or right.
Check #1 is true.
If this is a sufficient technique for a success criterion, failing this test procedure does not necessarily mean that the success criterion has not been satisfied in some other way, only that this technique has not been successfully implemented and can not be used to claim conformance.
Techniques are informative—that means they are not required. The basis for determining conformance to WCAG 2.0 is the success criteria from the WCAG 2.0 standard—not the techniques. For important information about techniques, please see the Understanding Techniques for WCAG Success Criteria section of Understanding WCAG 2.0.