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)

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

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


Hakon
Received on Tuesday, 13 May 2003 08:53:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:21 GMT