1173 posts
  • 6 Years of Membership
  • Australia
  • Author Level 5
  • Beta Tester
+4 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.

1096 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Beta Tester
  • Collector Level 2
+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
  • 6 Years of Membership
  • Australia
  • Author Level 5
  • Beta Tester
+4 more
Motionreactor
says

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

371 posts
  • 5 Years of Membership
  • Affiliate Level 2
  • Collector Level 1
  • Exclusive Author
+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
  • 5 Years of Membership
  • Collector Level 1
  • Exclusive Author
  • 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
  • 6 Years of Membership
  • Australia
  • Author Level 5
  • Beta Tester
+4 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