Created
July 14, 2016 01:55
-
-
Save jneander/8ed6eff8957c2bd66da4175ba9f10c38 to your computer and use it in GitHub Desktop.
Visually hide an element, yet keep it available to screenreaders.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.screenreader-only { | |
border: 0; | |
clip: rect(0 0 0 0); | |
height: 1px; | |
margin: -1px; | |
overflow: hidden; | |
padding: 0; | |
position: absolute; | |
width: 1px; | |
transform: translatez(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment