Accessibility Tips A collection of tips, guidance, advice and practical suggestions in developing accessible websites

Deciding when display: none is appropriate →← Providing link text

Avoiding visibility hidden

Hiding content from view with visibility: hidden in many cases prevents the screenreader from reading the content, so content styled this way is inaccessible. This technique is not appropriate for hiding content on screen because no screenspace is saved by styling this way - the visitor is left looking at a blank region the size of the hidden content.

In a number of cases visibility: hidden is used in conjunction with positioning the content offscreen (position: absolute; left: -999em;). This is unnecessary since positioning content off the viewport is sufficient to hide the content, and the visibility: hidden makes the content unavailable to screen readers.

There's no reason to use visibility: hidden. Positioning the content offscreen is safer and has far less accessibility implications. If you fee that visibility: hidden is appropriate for your requirements, I strongly recommend revisiting the requirement and finding an altogether different solution.

March 5th, 2008 / 0 Comments / Tags: visibility, hidden, screenreaders, accessibility, hide content, offscreen, viewport / Trackback

Comments on “Avoiding visibility hidden”