accessibility-guidelines

This document is in beta. Help us by reporting issues via Github or email.

Back to the overview page

Text spacing

If users increase the space between lines, paragraphs, letters and words, make sure they can still access all content and functionalities.

Web browsers allow users to change the spacing between lines of text, letters, words and paragraphs. Make sure that no loss of content or functionality happens when users do that.


On this page:


Requirements

If users apply all of these changes together, no content or functionality should disappear from the screen or be truncated:

Testing

You can use a browser plug in or directly edit typographic CSS on a page to change the styles so that:

Make sure that all text fits within its containing box without being cut off or without overlapping other boxes.

Common mistakes

Why?

Official wording in the Web Content Accessibility Guidelines

1.4.12 Text Spacing (Level AA): In content implemented using markup languages that support the following text style properties, no loss of content or functionality occurs by setting all of the following and by changing no other style property:

Exception: Human languages and scripts that do not make use of one or more of these text style properties in written text can conform using only the properties that exist for that combination of language and script.

See the W3C’s detailed explanation of this guideline with techniques and examples.


Guidance for Web

See the W3C’s detailed explanation of this guideline with techniques and examples.

CSS techniques


More info

Sources

Contribute

This document is in beta. Help us by reporting issues via Github or email.