Created
April 17, 2012 02:33
-
-
Save monsat/2403026 to your computer and use it in GitHub Desktop.
Another image replacement
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
<div id="foo" class="hide-text">This is a hidden text.</div> | |
<style type="text/css"> | |
.hide-text { | |
text-indent: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
} | |
#foo { | |
height: 200px; | |
width: 400px; | |
background: url(../img/foo.jpeg) no-repeat; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://tipshare.info/view/4f8cd4d07f8b9a785b000002