Skip to content

Instantly share code, notes, and snippets.

@alienlebarge
Last active September 30, 2015 05:27
Show Gist options
  • Save alienlebarge/1728992 to your computer and use it in GitHub Desktop.
Save alienlebarge/1728992 to your computer and use it in GitHub Desktop.
CSS hidden style compliant with screen readers. Hide for screen but not for screen reader.
.hidden-well-sighted {
position: absolute !important;
overflow: hidden;
width: 1px;
height: 1px;
padding: 0;
border: 0;
clip: rect(1px, 1px, 1px, 1px);
}
@alienlebarge
Copy link
Author

.hide {
  display:none;
}

Some screen reader can skip a tag with a display:none; style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment