Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Visually hidden utility class
* Hides element visually and removes it from the flow,
* but importantly, allows assitive technology to access it
.visually-hidden {
border: 0;
clip: rect(0 0 0 0);
height: auto;
margin: 0;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
white-space: nowrap;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment