Re: [css-d] CSS onclick event?

2006-05-18 Thread Design Groups
Wow - a lot of you responded :) Thanks so much! Let me see what I can say about this... 1) I'm trying to avoid javascript solutions at all costs - I'd love for this to work in CSS-only. I've been playing with the idea for a lng time and I've partially gotten it to work (got it to work

[css-d] CSS onclick event?

2006-05-17 Thread Design Groups
Here's an odd one...and this is purely for theoretical purposes. I was just wondering if there was any possible way to have a link remain one color until another one is clicked upon, using *only* CSS. For example, if you had a UL list comprised of 5 links, would it be possible to hover over

Re: [css-d] CSS onclick event?

2006-05-17 Thread Christian Montoya
On 5/17/06, Design Groups [EMAIL PROTECTED] wrote: Here's an odd one...and this is purely for theoretical purposes. I was just wondering if there was any possible way to have a link remain one color until another one is clicked upon, using *only* CSS. a:active { color:whatever; } -- --

Re: [css-d] CSS onclick event?

2006-05-17 Thread Design Groups
Christian Montoya wrote: a:active { color:whatever; } Yes, but that only works when you click the button (or mouse down). When you unclick and move away, the color doesn't remain behind, it reverts to the visited color. What I'm looking for is the active state to stay, until another link

Re: [css-d] CSS onclick event?

2006-05-17 Thread cj
i think your best bet is javascript. javascript could change the css class of the tab and won't change it again until something else is clicked, in which case you take the active class away from the original one and apply it to the newly activated one.

Re: [css-d] CSS onclick event?

2006-05-17 Thread Tom Livingston
On 5/17/06, Design Groups [EMAIL PROTECTED] wrote: Christian Montoya wrote: a:active { color:whatever; } Yes, but that only works when you click the button (or mouse down). When you unclick and move away, the color doesn't remain behind, it reverts to the visited color. What I'm

Re: [css-d] CSS onclick event?

2006-05-17 Thread Thierry Koblentz
Design Groups wrote: Here's an odd one...and this is purely for theoretical purposes. I was just wondering if there was any possible way to have a link remain one color until another one is clicked upon, using *only* CSS. For example, if you had a UL list comprised of 5 links, would it be

Re: [css-d] CSS onclick event?

2006-05-17 Thread Thierry Koblentz
Christian Montoya wrote: On 5/17/06, Design Groups [EMAIL PROTECTED] wrote: Here's an odd one...and this is purely for theoretical purposes. I was just wondering if there was any possible way to have a link remain one color until another one is clicked upon, using *only* CSS. a:active {

Re: [css-d] CSS onclick event?

2006-05-17 Thread Christian Montoya
On 5/17/06, Design Groups [EMAIL PROTECTED] wrote: Christian Montoya wrote: a:active { color:whatever; } Yes, but that only works when you click the button (or mouse down). When you unclick and move away, the color doesn't remain behind, it reverts to the visited color. What I'm