Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Style sheets priority order

Tags:

css

stylesheet

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?

like image 906
Chin Avatar asked Nov 30 '12 02:11

Chin


1 Answers

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

like image 147
Niet the Dark Absol Avatar answered Oct 18 '22 12:10

Niet the Dark Absol