Skip to content

Instantly share code, notes, and snippets.

@chrisblackwell
Created January 25, 2014 02:28
Show Gist options
  • Save chrisblackwell/8610876 to your computer and use it in GitHub Desktop.
Save chrisblackwell/8610876 to your computer and use it in GitHub Desktop.
Visually Hidden CSS
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment