Created
February 3, 2015 01:47
-
-
Save kittenlane/d85c0f04fec0e709ad03 to your computer and use it in GitHub Desktop.
CSS image replacement with text indent, replaces the -9999px hack.
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-text { | |
text-indent: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
} |
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
http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment