# 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.

```css
.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](https://www.ask-codey.com/glossary?category=css&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/source-order
