--- url: "https://www.w3.org/WAI/WCAG22/Techniques/css/C21" titulek: "C21: Specifying line spacing in CSS | WAI | W3C" h1: "Technique C21:Specifying line spacing in CSS" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:31:40" znaku: 1547 slov: 215 kodovani: "utf-8" sha256: "7e7728f6ee66577a86245e87c43523b5494d48f8bb4f729cf2e7754b4783bfe2" --- # Technique C21:Specifying line spacing in CSS ## About this Technique This technique relates to: - [1.4.8 Visual Presentation](https://www.w3.org/WAI/WCAG22/Understanding/visual-presentation) ( **Sufficient** ) - [1.4.12 Text Spacing](https://www.w3.org/WAI/WCAG22/Understanding/text-spacing) ( **Advisory** ) 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 Many people with cognitive disabilities have trouble tracking lines of text when a block of text is single spaced. Providing spacing between 1.5 to 2 allows them to start a new line more easily once they have finished the previous one. ## Examples ### Example 1: Setting the element to 1.5 line height In the style sheet set the characteristics of the element. ``` body { line-height: 1.5; } ``` This sets the line height of everything in the body of the document to 1.5. ## Related Resources *No endorsement implied.* - [CSS3 Line spacing: the `line-height` property](https://www.w3.org/TR/css-inline-3/#line-height-property) . - [Eric Meyer - Unitless line heights](http://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/) ## Tests ### Procedure 1. Open content in a browser. 2. Check that the spacing between lines in blocks of text is between 1.5 and 2. ### Expected Results - Check #2 is true. Back to Top