W3C home > Mailing lists > Public > www-style@w3.org > May 2003

Control an element that is not child of the trigger

From: Hakon G <hakon_@everyday.com>
Date: Tue, 13 May 2003 07:24:50 -0400 (EDT)
Message-Id: <200305131124.h4DBO2I06774@eday-fe6.tele2.ee>
To: www-style@w3.org
Here's a suggestion:

I think it would be useful if stylesheet could be used to affect an element that isn't necessarily a child of the trigger.
Something like this: (I have suggested the » character as the selector)

<style type="text/css">
a:hover » #label­  ­{ visibility: visible }
#label { visibility: hidden }
<a>Click here!</a>
<span id="label">You're about to click on the link!</span>

And the #label could even be placed before the hyperlink.
Would this make sense?

Received on Tuesday, 13 May 2003 08:53:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:07 UTC