Control an element that is not child of the trigger

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 UTC