--- url: "https://www.w3.org/WAI/WCAG22/Techniques/css/C19" titulek: "C19: Specifying alignment either to the left or right in CSS | WAI | W3C" h1: "Technique C19:Specifying alignment either to the left or right in CSS" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:31:36" znaku: 1280 slov: 191 kodovani: "utf-8" sha256: "75495a2e85976c8081e3e0d11c7b3c842fd43cfb2a38e3280c1aedf42737bfdd" --- # Technique C19:Specifying alignment either to the left or right in CSS ## About this Technique This technique relates to [1.4.8 Visual Presentation](https://www.w3.org/WAI/WCAG22/Understanding/visual-presentation) (**Sufficient**). This technique applies to CSS. Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are **not required** to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description This technique describes how to align blocks of text either left or right by setting the CSS text-align property. ## Examples ### Example 1: Aligning text to the left In the following example, text is aligned left. In the style sheet, define the class: ``` p.left {text-align: left} ``` In the content call the up the class. ```

Lorem ipsum dolor sit ...

``` ### Example 2: Aligning text to the right In the following example, text is aligned right. ``` p.right {text-align: right} ``` In the content call the up the class. ```

Lorem ipsum dolor sit ...

``` ## Tests ### Procedure 1. Check that the text is aligned either left or right. ### Expected Results - Check #1 is true. Back to Top