Style sheets priority order
CSS declarations are applied in this order (from lowest to highest priority):
- user agent declarations (the default styles your browser applies to elements)
- user normal declarations (a user's own stylesheet if they're using one)
- author normal declarations (this is your normal stylesheet)
- author important declarations (anything your mark important)
- user important declarations (any important styles from the user's stylesheet)
The correct order of precedence is, from least important to most important:
- User Agent
- User Normal
- Author Normal
- Author Important
- User Important
As defined in the specification