Thanks for your help.
I know I could do it with javascript, but I wanted to know if there is
a solution without.

Thanks a lot!
Peter


2010/7/29 Alex Mitchell <alex.mitch...@gumware.com>
>
>
> On Thu, Jul 29, 2010 at 7:23 AM, Alan Gresley <a...@css-class.com> wrote:
>>
>> Philippe Wittenbergh wrote:
>> > On Jul 26, 2010, at 8:08 PM, Göldi wrote:
>> >
>> >> I have a link with an image as background which should turn green when
>> >> user click on the link (:active). Works good in Frirefox and Webkit
>> >> and IE8, but not in IE7: The button remains green (active) when user
>> >> releases the button, and turns back to regular state when button loses
>> >> focus.
>> >
>> > IE7 and older are completely confused about what is the :active 
>> > pseudo-class. Basically, it treats it the same as :focus.
>> >
>> > Afaik, there are no work arounds.
>> >
>> > Philippe
>> > ---
>> > Philippe Wittenbergh
>> > http://l-c-n.com/
>>
>>
>> Late to this. Philippe is correct.
>>
>>
>> <http://css-class.com/test/css/selectors/pseudo-class-active-focus.htm>
>>
>>
>>
>> --
>> Alan http://css-class.com/
>>
>> Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
>
>
> Actually there is a workaround, it's called javascript.
> If you want to use javascript inline to achieve this, you
> could play with the onfocus(), onblur(), onmousedown(),
> and onmouseup() functions, which, to my knowledge, work
> just as well visually in IE7 as they do in any other browser.
> Hope this helps,
> Alex Mitchell
> http://gumware.com
>>
>> ______________________________________________________________________
>> css-discuss [cs...@lists.css-discuss.org]
>> http://www.css-discuss.org/mailman/listinfo/css-d
>> List wiki/FAQ -- http://css-discuss.incutio.com/
>> List policies -- http://css-discuss.org/policies.html
>> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to