Re: DYNAMICALLY disable links with CSS?
Mark Johnson <102334.12@comp userve.com> wrote:[color=blue]
>Steve Pugh <steve@pugh.net > wrote:
>[color=green]
>>Hang on. You have <a href="">text</a> and you've styled it so that it
>>has a changing background on :hover, right?[/color]
>
>No. It just stays as text. But a couple of nested divisions before it,
>just float to the left, and can contain a button and hover-button,
>separately, for a single anchor tag which duplicates the href link.[/color]
So you actually have two links to the same resource?
[color=blue]
>Some of my styles don't do that Typically it's display:none.
>But one does. It's a very different look than the others.[/color]
Yes, different styles produce different looks. You have two links to
the same resource styled differently and you don't want one of them to
be a link? So remove the <a> element from the second one.
[color=blue]
>So I wanted to
>transfer the click, the link, over to the button, and away from the
>text.[/color]
It's impossible (well except by changing the document with JavaScript)
to 'transfer' a link or anything like that. You seem to be implying
that you've managed to do this 'transferring' somehow. Telling us how
would maybe give us some indication of what on earth you're actually
taking about.
[color=blue]
>The text remains. But it doesn't do anything. And I don't know
>how to do that.[/color]
<a href=""><img src="your button" alt=""></a>
the text.
What could be simpler?
[color=blue][color=green][color=darkred]
>>>It would just be slicker to be able
>>>to do that, turn off the text link.[/color][/color]
>[color=green]
>>If you turn off the link then there is no link.[/color]
>
>Exactly.[/color]
Do you want the link to exist or not? I'm very confused.
[color=blue][color=green]
>>If you want to hide the text[/color]
>
>I want the text to remain visible, to identify the button's link.[/color]
Identify it how?
[color=blue]
>Maybe it just can't be done. Again, it would be nicer. But it's no
>loss.[/color]
I have no idea what you're actually trying to do. A URL normally
helps.
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/>
Mark Johnson <102334.12@comp userve.com> wrote:[color=blue]
>Steve Pugh <steve@pugh.net > wrote:
>[color=green]
>>Hang on. You have <a href="">text</a> and you've styled it so that it
>>has a changing background on :hover, right?[/color]
>
>No. It just stays as text. But a couple of nested divisions before it,
>just float to the left, and can contain a button and hover-button,
>separately, for a single anchor tag which duplicates the href link.[/color]
So you actually have two links to the same resource?
[color=blue]
>Some of my styles don't do that Typically it's display:none.
>But one does. It's a very different look than the others.[/color]
Yes, different styles produce different looks. You have two links to
the same resource styled differently and you don't want one of them to
be a link? So remove the <a> element from the second one.
[color=blue]
>So I wanted to
>transfer the click, the link, over to the button, and away from the
>text.[/color]
It's impossible (well except by changing the document with JavaScript)
to 'transfer' a link or anything like that. You seem to be implying
that you've managed to do this 'transferring' somehow. Telling us how
would maybe give us some indication of what on earth you're actually
taking about.
[color=blue]
>The text remains. But it doesn't do anything. And I don't know
>how to do that.[/color]
<a href=""><img src="your button" alt=""></a>
the text.
What could be simpler?
[color=blue][color=green][color=darkred]
>>>It would just be slicker to be able
>>>to do that, turn off the text link.[/color][/color]
>[color=green]
>>If you turn off the link then there is no link.[/color]
>
>Exactly.[/color]
Do you want the link to exist or not? I'm very confused.
[color=blue][color=green]
>>If you want to hide the text[/color]
>
>I want the text to remain visible, to identify the button's link.[/color]
Identify it how?
[color=blue]
>Maybe it just can't be done. Again, it would be nicer. But it's no
>loss.[/color]
I have no idea what you're actually trying to do. A URL normally
helps.
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