Skip to content

Instantly share code, notes, and snippets.

@nealfennimore
Last active April 21, 2017 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nealfennimore/f15f7fcfc30d43c5ec103dacc0f019a3 to your computer and use it in GitHub Desktop.
Save nealfennimore/f15f7fcfc30d43c5ec103dacc0f019a3 to your computer and use it in GitHub Desktop.
Accessible Hiding of DOM Elements
/* http://a11yproject.com/posts/how-to-hide-content/ */
.visually-hidden {
position: absolute !important;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
padding:0 !important;
border:0 !important;
height: 1px !important;
width: 1px !important;
overflow: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment