important issues related to specificity
determines which css rules are applied to the browers and ignored.
which are more important and less important
it will choose takes preferece
if 2 selecters are in one element - one that has priority wins.
1/ determines which css rules are applied by the browswer
2/ the reason why the css rules dont apply to some elements, although you think they should
3/ every selecter has itz place in its specificity highracy\
4/ if 2 selecters apply element, the one with the highest specificity wins
5/ 4 distinct catagories, which define the spec level of a given selecter
these are:
inline styles
ids
classes
elements
6/ when selecters have = spec values, the rule that appears last is the rule that is applied tot he element.
7/when selecters have unequal spec value the more specific rule is applied to the element
8/ rules with more specific selecters, have greater specificity.
9/Rules stored within the imbedded style sheet have greater spec,than other rules asscoiated with the document
10/ rules imbedded withing the document, have greater spec than other rules asoc with the doc
11/id selecters have higher spec values than attribute selecters
12/ always try to use ids to increase speficity
14/ any universal selecters or inherited selecters have a spec value of 0 0 0 0
Tuesday, August 25, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment