> A:hover,#myelement { color: #FFF }
> 
> But every other <a> element on the page got selected.

Replace your comma ',' with a space ' ':

a:hover #myelement {color:#fff;}

You were also missing a semi-colon ';' :) - so many times I thought I 
had a massive failure on my hands when the only problems were  ahandful 
of missing semi-colons.

When you write

a:hover,#myelement {}

It selects #myelement and all a:hover - comma is a separator. It is also 
a nifty hack for IE only if you put it on the last definee - anyone 
tried this on IE7?

Regards,
Barney
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to