:where(.site-nav a) { color: #0f172a; }Links receive the base colour without a hard-to-override selector.
LESSON 96 OF 100
Write an easy-to-override base style for navigation links.
The :where() functional pseudo-class accepts a selector list, but neither :where() nor its arguments contribute specificity. It is useful for defaults intentionally kept easy to override.
:where(.site-nav a) { color: #0f172a; }Links receive the base colour without a hard-to-override selector.
#header .site-nav ul li a { color: #0f172a !important; }The ID, long chain and !important unnecessarily make overrides harder.
Use :where(.site-nav a) and set colour to #0f172a.
:where() keeps selector matching while contributing zero specificity.
ANALYSIS REQUEST
The initial discussion is without obligation. You receive an honest recommendation, suitable stages and the factors that affect price.