I’ve got a HTML / CSS problem with a website layout. I’m coding this up for a client, but the problem is they want a decorative transparent PNG to overlay above the page content. This is possible to do with position:absolute and z-index, but of course it blocks any selection, mouse clicks or other interactions with underlying content below. Is there any solution to this? Usually I avoid these kinds of elements in my own designs, but I’m just the coder for this project.
why not put it as a background and make all the content above it transparent to see the image.
The content has to be visible and has to sit below the overlay.
As far as I know, you can’t cover up a bunch of elements with a transparent overlay, and still be able to interact with them, because this new div is on top. You can’t position it behind, because you lose the effect but can now click. I think it’s a one or the other thing, unless someone can come up with a genius solution =)
allright, say the overlay image is a massive square that has a blank circle in the middle of it were the content should be place. My Idea is to use that overlay image as the background of the content that will be displayed through it, then you can use the following plugin to wrap your content to fit the place that it should be displayed in. SOrry about my crappy english but I hope you got the point.
Here is the link http://www.csstextwrap.com/index.php
Hmm, yeh…. I figured this wasn’t possible. I already knew this, but was hoping there may be a genius solution. Thank you for the suggestions, the design will have to change a little. The only other way I know is using Flash, but it really doesn’t suit the purpose for this case.