[thelist] CSS selectors

Alvaro Medina incomt65 at hotpop.com
Wed Feb 25 15:45:02 CST 2004


Many thanks!

Alvaro Medina G.
incomt65 at hotpop.com
Santiago, Chile
----- Original Message ----- 
From: "Simon Perry" <simon.perry at si-designs.co.uk>
To: <thelist at lists.evolt.org>
Sent: Wednesday, February 25, 2004 6:34 PM
Subject: Re: [thelist] CSS selectors


> Alvaro Medina wrote:
>
> >Hello, this may be a dumb question but anyway I have this little doubt :
what is the difference between
> >
> >.someclass { }
> >anytag.someclass { }
> >
> >? I mean it for practical matters. I know the first could be assigned to
any tag, as the second is just for it; then, could one declare
> >
> >div.someclass { }
> >p.someclass { }
> >
> >and so on? Is there a difference? Will the agent recognize it as 2
different classes? and whats the point, since one could declare different
classes names to different tags?
> >
> >
> It's all about specificity [0] however there are those who are better at
> explaining further [1].
>
> Simon
>
> [0] http://www.w3.org/TR/REC-CSS2/cascade.html
> [1]
>
http://www.westciv.com/style_master/academy/css_tutorial/advanced/cascade_inheritance.html
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !




More information about the thelist mailing list