Default font size Increase font size  |   Decrease font size   |  
Skip to main content

Success Criterion 1.4.4 Resize text: [Level AA]

The intent of this Success Criterion is that text may be scaled so that it can be read directly by people with mild visual disabilities, without requiring the use of assistive technology such as a screen magnifier. Users may benefit from scaling all content on the Web page, but text is most critical. Normally the user agent will provide support for zooming in and out of a page. Note that zooming in a browser (usually keys 'Ctrl+' or 'Ctrl-') may work differently from just increasing the text size. If the text size is increased it may not necessarily increase the size of images whereas zooming generally increases the size of all content in the page.

If the author is using a technology whose user agents do not provide zoom support, the author is responsible to provide this type of functionality directly or to provide content that works with the type of functionality provided by the user agent. If the user agent doesn't provide zoom functionality but does let the the user change the text size, the author is responsible for ensuring that the content remains usable when the text is resized. It is felt that 200% increase in text size is the maximum that would be required.

Techniques

User agents that support zoom

In the author's opinion, this criterion is a little difficult to satisfy. The description of this technique and I quote from W3C "The objective of this technique is to ensure content can be scaled uniformly by using a Web technology supported by user agents that change text size via a Zoom tool.". This is where you come a little unstuck I think. You have no idea which user agent a user might use. Do you really want to go back to the bad old days where websites had that statement "Best viewed in Internet Explorer"? W3C suggest that a wide variety of user agents be tested but in the business world this is impratical because of the resources required, time and money.

Using the correct CSS units

To assist in the resizing of a web page, size values should be specified in relative units, namely em or %. The width and height of containers (e.g. div) should use em units. This allows the containers to be resized in line with text size settings.

Hand in hand with this it is preferable to use % for the font size. This then allows the text size to be scaled in proportion to the size of its container.


Top

Providing controls to increase text size

There are many situations when functionality should be provided within a web page to increase/decrease text: the user agent does not have zoom capability; unfamiliarity with browser text size adjustments; user has cognitive disablities. In these cases a mechanism such as a button or link should be provided by which the user can change the text size. An example of this can be seen in this web page, links being provided in the upper right of the page which can increase, decrease and return the text to its default size. Note that this does not work in conjunction with the browsers zoom capability (major browsers at least, Firefox, Chrome, Internet Explorer).

Preventing loss of functionality when text is re-sized

When text is re-sized, if the layout is not specified correctly, it is possible for text to overflow its container element causing loss of content or functionality. Containing blocks should be specified in such a way that expanding text wraps around inside the block and not overflow horizontally and any attempt at overflowing vertically the block should expand downwards or vertical scrollbars provided.

Failures

Resized text is clipped, truncated or obscured

In the examples below, default sized text is contained within the green coloured block. However when the text size is increased for the pink coloured block, the text may be hidden or overflow its containing area.

This text will be truncated when the text size is increased.


This text will be truncated when the text size is increased.


This text will be truncated when the text size is increased.

Form controls do not re-size correctly

In this example, text-size is increased but the size of the form field text has not increased.

Contact Us

Please provide us with your details and we will contact you as soon as we can. Note that all of the form fields are required.






Contact Us

Please provide us with your details and we will contact you as soon as we can. Note that all of the form fields are required.





Top