Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Danneman101

macrumors 6502
Original poster
Aug 14, 2008
361
1
This is more of an html/css-question, but its supposed to be used in a uiwebview, so...

I have a png-bild with a transparent bakground, that is places above a link.

The link is still visible thanks to the image's transparent background, but it doesnt register when I press it.

Is there a css-property or something for the <img>-tag that allows me to manipulate objects below the image? Kind of a "press-trough: allowed;" type of thing?
 

jnic

macrumors 6502a
Oct 24, 2008
567
0
Cambridge
This is more of an html/css-question, but its supposed to be used in a uiwebview, so...

I have a png-bild with a transparent bakground, that is places above a link.

The link is still visible thanks to the image's transparent background, but it doesnt register when I press it.

Is there a css-property or something for the <img>-tag that allows me to manipulate objects below the image? Kind of a "press-trough: allowed;" type of thing?

Not to my knowledge. Could you not just place the link above the image using CSS z-index, or make the image itself a link?
 

Danneman101

macrumors 6502
Original poster
Aug 14, 2008
361
1
Not to my knowledge. Could you not just place the link above the image using CSS z-index, or make the image itself a link?

The z-index did not work for this, so I made the image into a background-image instead - seemed to be the easiest thing to do :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.