Last active
December 23, 2019 11:46
-
-
Save tsvensen/5490360 to your computer and use it in GitHub Desktop.
Image Replacement Technique
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/ */ | |
overflow: hidden; | |
text-indent: 100%; | |
white-space: nowrap; |
@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
white-space: nowrap seems a bit limiting.