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.

805 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+5 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 5 years
  • Has referred 10+ members
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by