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

    February 2012
    M T W T F S S
    « May    
     12345
    6789101112
    13141516171819
    20212223242526
    272829