On your average CSS-writin’ day, odds are you won’t even think about precedence in CSS. It doesn’t come up a whole heck of a lot. But it does matter! It comes up any time multiple CSS selectors match and element with the exact same specificity.
Assuming specificity is exactly the same, order does matter.
Styles declared later win.
Within a single stylesheet
Say we have some HTML like this:
<link rel=”stylesheet” …
Precedence in CSS (When Order of CSS Matters) is a post from CSS-Tricks
via Reme Le Hane