If I have the following style sheets:
user important declarations
user normal declarations
author normal declarations
user agent declarations
author importan
CSS declarations are applied in this order (from lowest to highest priority):
Below content is taken from here.
Style property can appear in any number of style sheets, and several times inside a single style sheet. Therefore, order of applying the rules is very important. This is called the "cascade" order. According to CSS2 spec, the cascade order is (from low to high):
a) The browser declarations are least important;
b) User overrides the author only if the declaration was marked as important.
c) Declarations with the same order will be sorted by specificity and then the order they are specified.
d) The HTML visual attributes are translated to matching CSS declarations.
e) They are treated as author rules with low priority.
The correct order of precedence is, from least important to most important:
As defined in the specification