.notice { color: #334155; }\n.notice { color: #b91c1c; }Both rules select the same element; the second colour is the cascade result.
LESSON 11 OF 100
Control the result when two rules have equal priority.
When origin, importance and specificity are equal, the declaration that appears later in the stylesheet wins.
.notice { color: #334155; }\n.notice { color: #b91c1c; }Both rules select the same element; the second colour is the cascade result.
.notice { color: #b91c1c; }\n.notice { color: #334155; }The values are valid, but the reversed order lets the grey colour win.
Complete the second .notice rule with #b91c1c and keep it after the grey rule.
When every other criterion is tied, the last applicable declaration determines the result.
ANALYSIS REQUEST
The initial discussion is without obligation. You receive an honest recommendation, suitable stages and the factors that affect price.