-
-
Save anybodesign/972acf66b71cabf07b1630d719722bc8 to your computer and use it in GitHub Desktop.
Hide some text in an accessible way
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
.screen-reader-text { | |
position: absolute; | |
display: block; | |
width: 1px; | |
height: 1px; | |
padding: 0; | |
margin: 0; | |
text-indent: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to hide a label, for example. Add this class to any HTML tag.