1173 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Australia
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
Motionreactor says

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.

654 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Provided great contribution to our forums
  • Has been a beta tester for an Envato feature
+4 more
Gareth_Gillman says

why not put it as a background and make all the content above it transparent to see the image.

1173 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Australia
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
Motionreactor says

The content has to be visible and has to sit below the overlay. :(

371 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
QwibbleDesigns says

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 =)

444 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United Kingdom
TahaH-Studio says

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

Edit: What can you do with this plugin

1173 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Australia
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
Motionreactor says

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.

by
by
by
by
by
by