Re: DYNAMICALLY disable links with CSS?
google-2003-03@kjsmith.com (Karl Smith) wrote:
[color=blue]
>Steve Pugh <steve@pugh.net > wrote:
>[color=green]
>> Mark Johnson <102334.12@comp userve.com> wrote:
>>[color=darkred]
>> >I wanted it simply to be treated as text, even though it is
>> >marked up with an anchor tag in the XHTML.[/color]
>>
>> There is no way in CSS to remove the link from an <a> element without
>> removing the whole element.[/color]
>
>To disable a link using only CSS, no JavaScript, position a
>transparent element over the link text and give it a higher z-index so
>it is "in front of" the link text.[/color]
Does that also disable the link if the user is navigating with the
keyboard rather than the mouse?
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>
google-2003-03@kjsmith.com (Karl Smith) wrote:
[color=blue]
>Steve Pugh <steve@pugh.net > wrote:
>[color=green]
>> Mark Johnson <102334.12@comp userve.com> wrote:
>>[color=darkred]
>> >I wanted it simply to be treated as text, even though it is
>> >marked up with an anchor tag in the XHTML.[/color]
>>
>> There is no way in CSS to remove the link from an <a> element without
>> removing the whole element.[/color]
>
>To disable a link using only CSS, no JavaScript, position a
>transparent element over the link text and give it a higher z-index so
>it is "in front of" the link text.[/color]
Does that also disable the link if the user is navigating with the
keyboard rather than the mouse?
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>
Comment