1

Possible Duplicate:
Clicking through a transparent .png
Click through a DIV to underlying elements

I have a PNG image on my page (positioned absolutely to a place where it fits with the rest of background), and the problem is that a hyperlink in another DIV element is 'obscured' by the transparent part of the image. The result is that the hyperlink is clearly visible and readable, but I cannot click on it.

Is there a way around it?

EDIT: I was surprised that this question wasn't asked before, but obviously, I didn't look hard enough:

Clicking through a transparent .png

Community
  • 1
  • 1
martin
  • 2,520
  • 22
  • 29

2 Answers2

0

Try giving the link a higher z-index than the image has.

Gereon
  • 17,258
  • 4
  • 42
  • 73
0

Give the elements that are supposed to be "above" the image a z-index that is higher then the image

John Conde
  • 217,595
  • 99
  • 455
  • 496
  • 1
    No, the transparent image is supposed to be *above* the text div (otherwise there would be little point in it being transparent, would it?). My problem is that the part of it that is transparent still prevents mouse events from getting through. – martin Jan 13 '13 at 17:50