How to add only text to text?
4 answers
I am assuming your background image is in a DIV or something, so you can insert text inside.
For example, if you have:
<div>Some Text</div>
div{background:url(/path/to/image.png);}
You can change it to this:
<div><p>Some Text</p></div>
div{background:url(/path/to/image.png);}
div p{background:#fff;}
Good luck!
0
a source to share
You can also use the text shadow implemented by the latest web browsers:
<div style="background: url(some_image.jpg); text-shadow: 1px 1px 1px #000; color: #fff">Readable</div>
or just do something like
<div style="background: url(some_image.jpg);"><p style="background: #fff">Readable</p></div>
0
a source to share