Using CSS to Hide Audible Text Off The Screen

Donald F. Evans

August 30, 2006

Question


Answer

Use CSS to hide some text off the screen. In this manner it is hidden from sight, but is still read by the screen reader.


Example

Hiding Link Text:
 <style type="text/css">
	a b.hidden {
		height: 1px;
		width: 1px;
		position: absolute;
		overflow: hidden;
		top: -999px;
	}
</style>
<a href="#">Edit <b class="hidden">Hidden Information</b></a>
Hiding LABEL Tags:
 <style type="text/css">
	.hidden {
		height: 1px;
		width: 1px;
		position: absolute;
		overflow: hidden;
		top: -999px;
	}
</style>
<LABEL FOR="foo" class="hidden">Hidden Label</LABEL>
<INPUT TYPE="text" ID="foo">
Hiding H Tags:
 <style type="text/css">
	.hidden {
		height: 1px;
		width: 1px;
		position: absolute;
		overflow: hidden;
		top: -999px;
	}
</style>
<H1 class="hidden">This is a hidden H tag</H1>

Other Resources