Paul Novitski wrote:
> At 12/13/2006 11:10 AM, ~davidLaakso wrote:
>> re: Making an anchor not clickable?
>> I may not understand...but,  <a href="#">home</a> is still clickable in
>> the sense that the page will flash when clicked. Personally, I think it
>> should be dead in the water.
> 
> 
> However, the original poster asked if there were a way to disable a 
> link with CSS.  I believe this is possible by positioning a 
> transparent foreground GIF on top of the link, rather like a clear 
> plastic shield over a button.  The GIF would have to be in the 
> markup, so semantically it might be seen as extraneous, but with a 
> blank alt it should at least be semantically inert.

I've found that including an onclick="return false" attribute on the 
anchor element does the trick.  While this solution uses javascript and 
not css, it does get the job done.  I've tested this solution with 
success under Firefox, Safari and IE6.

--Ryan
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to