to further make people think... high specificity supports lack of
knowledge about css! If you are going to code each id with a css
style, you are missing the point of css. You might as well use font
tags!
And don't get me wrong.... they both have their places... but to
master css & jqurery you have to know the dom and how to make it work
for you.
On 1/21/07, Giuliano Marcangelo <[EMAIL PROTECTED]> wrote:
> When it comes to specificity.......the following will give you the basic
> rules that are followed by CSS
>
> HTML SELECTOR = 1
>
> CLASS SELECTOR = 10
>
> ID SELECTOR = 100
>
> therefore
>
> div p has a specificity of 2
>
> div p.myclass has a specificty of 12
>
> #myId div p.myclass has a specificity of 112
>
> and in Karls example
>
> #mighty { color: red; } specificity of 100
> body div.weak div.enervated p.feeble { color: blue; } specificity of
> 1+10+1+10+1+10= 33
>
> hth
>
>
>
>
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
>
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/