开发者

With css is it possible to use an image for text color? [duplicate]

This question already has answers here: 开发者_开发百科 Set background image for font color? (5 answers) Closed 9 years ago.

Can I make text textured by somehow setting an image as the text color, and having it repeat throughout the text?


Not possible with pure css. See previous post on Textured Text


I don't think that is possible, sorry.

You'd need to make an image.

Though if you could create the text with CSS masks, it will work :)


Yes, you can take a font of your choice and alter it so the outlines are cut out of solid blocks (like the 'oversteer' glyphs of this image instead of the 'unsteady' glyphs). You can embed this custom font into pages using CSS's @font-face, and then it's just a matter of applying a background in the normal way (and ensuring proper line-height, etc.).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜