3

I have a background image, and a white div on top of it. I want to have text inside that div that is transparent, so that you can see "through" to the background image. Is that at all possible?

Should look something like this:

Community
  • 1
  • 1
Moriz Büsing
  • 368
  • 3
  • 17

3 Answers3

2

You need to use this for your text in CSS

-webkit-text-fill-color: transparent;
Brian
  • 4,958
  • 8
  • 40
  • 56
1

Use the following CSS property on your white div to make the underlying image show through.

background: rgba(255, 255, 255, 0.6);
Babak Naffas
  • 12,395
  • 3
  • 34
  • 49
0

Instead of text, just use a GIF image that has pixel "wholes" (text has no pixels, pixels surround it). That is probably a solution with highest compatibility.