Over and under


I was struggling with getting the layering right using a transparent background and ended up making this. In the process, I (re) learned how relative positioning lets elements be both in the “flow” of a layout, and still layered. (I was having the problem “normal” elements would appear underneath the absolutely positioned transparent background layer.)

← Previous post

Next post →


  1. The included code doesn’t work in IE, though I have corrected this elsewhere. turns out you need to specify a height for the outer div.

  2. great feature!
    your blog is as useful as your classes. I’m glad I won’t be out of Michael’s tricks 🙂

Comments are closed.