Tag-Archive for » design «

How to Understand CSS Specificity Rules

Have you ever thought of how CSS rules are rendered by browsers? How do browsers define which CSS rules have higher priority? Beginning web developers sooner or later come to the question of CSS Specificity. Just imagine your CSS file has the following lines:

p {color:white;}
p {color:red;}

How should browsers render this code? There must be some way to determine the importance of this or that line. And this way exists – it’s called CSS Specificity.

more…

Category: Uncategorized  Tags: ,  Leave a Comment
  • Calendar

    May 2012
    M T W T F S S
    « May    
     123456
    78910111213
    14151617181920
    21222324252627
    28293031