-
Different Colors where elements overlap (CSS)
Hi, so the question I asked before has evolved somewhat.
Here’s the effect I’m going for–the title “Il Cuore Canta” is green, but only where it overlaps the red div element:
And here’s the progress I’ve made so far:
https://www.liberocanto.org/ilcuorecanta/index2.html
I did this by making the green text the BACKGROUND of the red div. Progress! It scales correctly with the browser zoom settings, so that’s good. However:
- It needs to scroll when the page scrolls down, and
- The green text needs to be on top of the title, not the other way around.
Any ideas?
Can you ever send a text element UNDER the background of another div? Why aren’t the z-indices working?
Sorry, there were no replies found.
