Skip to content Skip to sidebar Skip to footer

Overlay Transparent Image Over Clickable Links

I'm trying to create a web page with a transparent image that appears overtop of text and clickable links. Here is the mockup that I want it to look like, and here is the current

Solution 1:

You can go for option number one, except that you don't have to clip the image.

You can simply apply the same background image to both divs, and the browser will take care of the clipping for you. You'll have to provide exactly correct px offsets for the two backgrounds.

Here's a very rough demo: http://jsfiddle.net/zbZKG/

Here's a second one that works better when you reduce the window width: http://jsfiddle.net/zbZKG/1/

The box-shadow and the plant would interact more pleasantly if you used an rgba colour with some transparency for the shadow, something vaguely like rgba(0, 0, 0, 0.6).

Post a Comment for "Overlay Transparent Image Over Clickable Links"