Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a pattern into a written text via CSS? [closed]

some days ago I saw a website where a written text had a background-image in.

Is it already possible with CSS to get a background-image into a text?

I do not want a background-image behind the text. I have no idea to achieve this. :(

Thanks gago!

http://img221.imageshack.us/img221/232/examplewf.png

like image 561
gago Avatar asked Dec 06 '25 18:12

gago


1 Answers

@gago; you can use css3 background clip proprty.

for example css:

p {
   color: white;
   background: url(images/fire.jpg) no-repeat;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

check this link for more http://css-tricks.com/7850-image-under-text/

like image 70
sandeep Avatar answered Dec 09 '25 01:12

sandeep



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!