Skip to content

Instantly share code, notes, and snippets.

@kittenlane
Created February 3, 2015 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kittenlane/d85c0f04fec0e709ad03 to your computer and use it in GitHub Desktop.
Save kittenlane/d85c0f04fec0e709ad03 to your computer and use it in GitHub Desktop.
CSS image replacement with text indent, replaces the -9999px hack.
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
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