Style sheets priority order

Chin picture Chin · Nov 30, 2012 · Viewed 27.1k times · Source

If I have the following style sheets:

user important declarations
user normal declarations
author normal declarations
user agent declarations
author important declarations

and need to apply them from highest priority to lowest priority, in which order should I use them?

Answer

Niet the Dark Absol picture Niet the Dark Absol · Nov 30, 2012

The correct order of precedence is, from least important to most important:

  1. User Agent
  2. User Normal
  3. Author Normal
  4. Author Important
  5. User Important

As defined in the specification