Skip to content

Instantly share code, notes, and snippets.

@Schepp
Created February 4, 2013 18:38
Show Gist options
  • Save Schepp/4708611 to your computer and use it in GitHub Desktop.
Save Schepp/4708611 to your computer and use it in GitHub Desktop.
Untitled
div {
color: red;
-webkit-text-fill-color: transparent;
background: url(http://www.bittbox.com/wp-content/uploads/2008/04/free_hires_wood_texture_5.jpg);
-webkit-background-clip: text;
}
p {
color: #8B4813; /* Color to key out. Best if a median of bg image colors */
font-size: 120px;
filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 ) /* Gradient fills with white */
progid:DXImageTransform.Microsoft.Chroma(color='#8B4813'); /* Color key. Removes pixels with that color */
}
<div>
<p>This text is textured</p>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment