This website may use cookies. More info. That's Fine x
Welcome Login

Resolving css conflicts


Css

To resolve css conflist, the declaration with the most weight is used.

All declarations are sorted and given a weight upon documents load in a browser.

There are four steps to sorting.

1. Find all declarations whose selectors match a particular element.

2. Sort these declarations by weight and origin

3. Sort the selectors by specificity

4. Sort by order specified

 

 

For more information, see here.


Created on: Friday, March 18, 2011 by Andrew Sin