Monday, November 15, 2004

hiding content on web pages

Quite often there is information on a webpage that needs to be in HTML but we don't want the sighted user to be able to see it. There is a dilemma. Most often people will use the display or visibility attribute in CSS. This can actually also hide content from some screen readers even though the text is still on the page.

One technique that is being used more and more is to position text off the page using CSS positioning. This way the text is not rendered invisible, so it will be seen by all screen readers. The text is off the page so it can not be seen by sighted users.

There is more information about this techique and lots of other helpful information in WebAim's article - An Accessible Method of Hiding HTML Content.

0 Comments:

Post a Comment

<< Home