--- url: "https://www.w3.org/WAI/WCAG22/Techniques/css/C6" titulek: "C6: Positioning content based on structural markup | WAI | W3C" h1: "Technique C6:Positioning content based on structural markup" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 04:43:33" znaku: 3389 slov: 483 kodovani: "utf-8" sha256: "e40e31839e641c118dd02860b0e2aa5e884aa756c816ea116fffa1a2df017acb" --- # Technique C6:Positioning content based on structural markup ## About this Technique This technique relates to: - [1.3.2 Meaningful Sequence](https://www.w3.org/WAI/WCAG22/Understanding/meaningful-sequence) ( **Sufficient** when used with [G57: Ordering the content in a meaningful sequence](../general/G57) ) - [1.4.5 Images of Text](https://www.w3.org/WAI/WCAG22/Understanding/images-of-text) ( **Advisory** ) - [1.4.9 Images of Text (No Exception)](https://www.w3.org/WAI/WCAG22/Understanding/images-of-text-no-exception) ( **Advisory** ) - [2.4.1 Bypass Blocks](https://www.w3.org/WAI/WCAG22/Understanding/bypass-blocks) ( **Advisory** ) This technique applies to all technologies that support 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 The objective of this technique is to demonstrate how visual appearance may be enhanced via style sheets while still maintaining a meaningful presentation when style sheets are not applied. Using the positioning properties of CSS, content may be displayed at any position on the user's viewport. Using structural elements ensures that the meaning of the content can still be determined when styling is not available. ## Examples ### Example 1 In this example structural markup (description lists) have been applied to the content. CSS has been used to style the content into columnar form. Each class absolutely positions the content into columns and the margins have been set to `0` to override the default behavior of user agents to display HTML definition lists with the `dd` element indented. Here is the content to be displayed: ```
Telephones
Computers
Portable MP3 Players
Idaho
Wisconsin
``` Here is the CSS which positions and styles the above elements: ``` .item1 { left: 0; margin: 0; position: absolute; top: 7em; } .item2 { left: 0; margin: 0; position: absolute; top: 8em; } .item3 { left: 0; margin: 0; position: absolute; top: 9em; } .item4 { left: 14em; margin: 0; position: absolute; top: 7em; } .item5 { left: 14em; margin: 0; position: absolute; top: 8em; } .menu1 { background-color: #FFFFFF; color: #FF0000; font-family: sans-serif; font-size: 120%; left: 0; margin: 0; position: absolute; top: 3em; } .menu2 { background-color: #FFFFFF; color: #FF0000; font-family: sans-serif; font-size: 120%; left: 10em; margin: 0; position: absolute; top: 3em; } #box { left: 5em; position: absolute; top: 5em; } ``` When style sheets are applied, the data are displayed in two columns of "Products" and "Locations." When the style sheets are not applied, the text appears in a definition list which maintains the structure and reading order. ## Tests ### Procedure For content which uses CSS for positioning: 1. Remove the style information from the document or turn off use of style sheets in the user agent 2. Check that the structural relations and the meaning of the content are preserved. ### Expected Results - Check #2 is true. Back to Top