Last active
December 13, 2015 17:18
-
-
Save About2git/4946407 to your computer and use it in GitHub Desktop.
CSS: Hide text for Screenreaders or hide visually but not for 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
/* Hide for all Screenreaders http://www.456bereastreet.com/archive/200711/screen_readers_sometimes_ignore_displaynone/ */ | |
.hidden { | |
display:none; | |
visibility:hidden; | |
} | |
/* Hide visually but read in Screenreaders http://webaim.org/techniques/css/invisiblecontent/ */ | |
.screen-reader-text { | |
position:absolute; | |
left:-10000px; | |
top:auto; | |
width:1px; | |
height:1px; | |
overflow:hidden; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment