FORUMS: list search recent posts

Different Colors where elements overlap (CSS)

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Emily Carmichael
Different Colors where elements overlap (CSS)
on Feb 27, 2012 at 9:39:26 pm

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:

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?

    Return to posts index

    << PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
    © 2018 All Rights Reserved