Marcelo de Moraes Serpa wrote:
> Hello list!
>
> I need to change these css attributes of only one element on the page, a
> exceptionla link that must behave differently. It is. However, I can't find
> a way to only select it using the pseudo-classes metioned, I tried:
>
> A:hover,#myelement { color: #FFF }
>
> But every other <a> element on the page got selected.
>   

Marcelo,

The correct targetting of selectors is completely dependent on the 
(X)HTML structure of your page. So, without seeing your page, we can't 
tell you the correct selector to target the page element you want. All 
we can do is guess. I'm going to guesss that the <a> element you want to 
target is inside a div with the id myelement? If so, the selector you 
want is:

#myelement a:hover

The space denotes that a:hover is a descendant of #myelement. Again, 
this will only work for a specific structure, so if I didn't guess your 
XHTML correctly, you'll need to provide it for us to provide more help.

Even if I did guess correctly, I strongly suggest you read this article 
to gain an understanding of selectors:
http://css.maxdesign.com.au/selectutorial/

You can also use this tool to translate selectors into regular English 
(or Spanish):
http://gallery.theopalgroup.com/selectoracle/

Zoe

-- 
Zoe M. Gillenwater
Design Services Manager
UNC Highway Safety Research Center
http://www.hsrc.unc.edu


______________________________________________________________________
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