Skip to content

Instantly share code, notes, and snippets.

@stowball
Created December 7, 2016 10:02
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save stowball/2704364c1ceefb1d7eaf570b903463b3 to your computer and use it in GitHub Desktop.
A utility class to hide content visually, but leave it available to assistive technologies
.u-visually-hidden {
border: none !important;
clip: rect(0 0 0 0) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
white-space: nowrap !important;
width: 1px !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment