I’m trying to use the mask-image property to put a texture over text… It works when I view it on other people’s sites but when I try to view it on a demo site I made it doesn’t work…
Here is my full code: (I don’t own the image being used)
<!doctype html>
<html>
<head>
<h1 style="-webkit-mask-image: url(http://www.geeks3d.com/public/jegx/200812/game-texture-02.jpg);
-o-mask-image: url(http://www.geeks3d.com/public/jegx/200812/game-texture-02.jpg);
-moz-mask-image: url(http://www.geeks3d.com/public/jegx/200812/game-texture-02.jpg);
mask-image: url(http://www.geeks3d.com/public/jegx/200812/game-texture-02.jpg);
font-size:120px;">
test
</h1>
</head>
<body>
</body>
</html>
Based on the example image I’ll go out on a limb here and assume that what you really want is this (example for webkit):
http://jsfiddle.net/ZdvXg/
A mask makes only sense if you’re having an transparent area within your image:
http://jsfiddle.net/ZdvXg/1/