Source order
noun
say it: “SORS OR-der” /sɔːrs ˈɔːrdər/
The order in which rules appear in the stylesheets. When two rules tie on everything else, the one that comes later wins.
What is source order in CSS?
Source order is the order rules appear in. When two rules are equally strong, the one that comes later wins.
.button { background: blue; }
.button { background: green; } /* green wins: it comes last */
In a sentence
- “Both rules were written .price, so source order decided: the green one came last in the file and won.”
Level: Novice · More CSS terms at this level
Updated