How does that "kill the child?" If the link has display: none, why
does that have any effect whatsoever on the clickability or the link
or the resulting action?  Doesn't display none simply not show it on
the page but allow it to exist in the DOM?

On Wed, Oct 8, 2008 at 2:05 PM, Gunlaug Sørtun <[EMAIL PROTECTED]> wrote:
> Jack Blankenships wrote:
>>
>> I want to make it so that an active link makes the parent element
>> disappear.  The element does disappear when I place an :active pseudo-class
>> on the parent element to change the display to none, however the link ceases
>> to function (i.e. - clicking on it does nothing).
>>
>> Working example: http://www.cssprovingground.com
>
> First: you're "killing the child so it can no longer support its
> parent", which is slightly different from what you describe but of
> course has the same effect. Only, the effect is immediate, and that
> makes it fail for links.
>
> The :active pseudo-class takes effect first - while the link is
> activated, and the link isn't followed until it has being released
> _after_ :active, and by then the link has disappeared and can't be followed.
>
> If Firefox you can hold a link :active for ages without anything
> happening. Once you release the link it will be followed. So, :active
> can be used to give visual cues - like changing background
> or similar, but not for much else. Use script for the effect you're after.
>
> regards
>        Georg
> --
> http://www.gunlaug.no
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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