Previous Message
Next Message

Annoying Safari issue - hidden links with images still clickable

Sent by Ingo Chao on 17 March 2006 12:12

Roger Roelofs wrote:
> On Mar 16, 2006, at 4:35 PM, Christian Heilmann wrote:
>> I just realised a really annoying Safari bug:
>> If you have an image inside a link and you hide the link via
>> visibility:hidden the link is still clickable.
>> Demo Case:
>> Is there a way around this issue - is it known?
> ... The only workaround I 
> can think of is to add another object and position it over the links.  
> Interestingly enough, when I drag the link in safari, the image becomes 
> visible.  In firefox, I can select the link/image by clicking on it, 
> but when I copy and paste it, I don't get the image, but the dot next 
> to it...

Based on that idea, I thought of negative z-indexing, but positioning 
seems to be enough:

#gone3 { visibility: hidden; position:relative; }

and in Fx, the dragging of the img can be prevented with

#gone3 { visibility: hidden; position:relative; z-index:-1}

but I don't know if that is related to a bug, nor if it's possible to 
get this img back ever.

css-discuss [EMAIL-REMOVED]]
IE7b2 testing hub --
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: