Skip to content

Instantly share code, notes, and snippets.

@tsvensen
Last active December 23, 2019 11:46
Show Gist options
  • Save tsvensen/5490360 to your computer and use it in GitHub Desktop.
Save tsvensen/5490360 to your computer and use it in GitHub Desktop.
Image Replacement Technique
/* http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/ */
overflow: hidden;
text-indent: 100%;
white-space: nowrap;
@stubbornella
Copy link

white-space: nowrap seems a bit limiting.

@beauwest
Copy link

@stubbornella You're replacing text with an image, since images can't wrap, what scenario are you envisioning where you'd want to be able to wrap text?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment