Technique C24:Using percentage values in CSS for container sizes
About this Technique
This technique relates to 1.4.8: Visual Presentation (Sufficient when used with G146: Using liquid layout).
This technique applies to CSS.
Description
The objective of this technique is to enable users to increase the size of text without having to scroll horizontally to read that text. To use this technique, an author specifies the width of text containers using percent values.
Examples
Example 1
A newspaper has content in the middle of the window. The width of the container for the content is specified in page percentages, so that when a person with low vision increases the font size the text reflows inside the browser window at the new size and there is no need to scroll horizontally.
Tests
Procedure
- Check that all container widths are specified as percentage values.
- Increase the text size to 200%.
- Check to make sure that horizontal scrolling is not required to read any line of text.
- Check that all text is still visible on the page.
Expected Results
- Checks #1, #3, and #4 are true.