On 10/25/06, Barney Carroll <[EMAIL PROTECTED]> wrote:
> > 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?
>
Yep, that is an easy mistake to make - links seem the worst culprits
for some reason.
Barney, I would never dream of trying a hack like that. Does IE ignore
or include the selector with a trailing comma?
--
Chris Ovenden
http://thepeer.blogspot.com
"Imagine all the people / Sharing all the world"
______________________________________________________________________
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/