Previous Message
Next Message

how to specify mutiple selectors for a:link etc

Sent by Tyson Tate on 14 March 2006 18:06


The comma separates different elements to be styled. It does no  
combining. So yes, you have to do:

..header1 a:link, .header2 a:link

-Tyson

-- 
Tyson Tate
* Graphic Designer, CalPoly Library
* Assistant Librarian & Member, Mustang Band
* Team Member, CalPoly Triathlon Team
* Webmaster & Active, Kappa Kappa Psi
* Editor, Entropy Magazine
* Freelance Graphic Designer


On Mar 14, 2006, at 10:03 AM, Don - htmlfixit.com wrote:

> I have this:
> .header1, .header2, a:link {color: #881719; text-decoration: none;}
> but that seems to treat it as:
> .header1
> .header2
> a:link
>
> I want it to be this:
> .header1 a:link
> .header2 a:link
>
> Do I need to repeat the a:link part?
>
> .header1 a:link, .header2 a:link {color: #881719; text-decoration:  
> none;}
>
> I am sure this is basic and yet I cannot find it.
>
> Thanks.
> ______________________________________________________________________
> css-discuss [EMAIL-REMOVED]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> IE7b2 testing hub -- 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/
>
>

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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/
Previous Message
Next Message

Message thread:

Possibly related: