Skip to content

Commit f4c48ab

Browse files
Dimo DimovDimo Dimov
authored andcommitted
docs: Improve CSS overrides docs
1 parent 6fff537 commit f4c48ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

styling-and-themes/override-theme-styles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This article provides high-level guidance about the required knowledge and tools
1616

1717
## CSS Knowledge
1818

19-
To override an existing style, you implement another *conflicting* style. To make sure the new style takes precedence, it should have a **higher specificity**.
19+
To override an existing style, you implement another [*conflicting* style](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_and_inheritance#conflicting_rules). To make sure the new style takes precedence, it should have a **higher specificity**. If it has the same specificity, then the style should come **later** in the order of CSS rules and files on the page.
2020

2121
* [MDN Documentation for CSS Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity). You may prefer a [less formal explanation](https://www.smashingmagazine.com/2007/07/css-specificity-things-you-should-know/).
2222
* How to easily [calculate CSS Specificity](https://stuffandnonsense.co.uk/archives/images/css-specificity-wars.png) (part of the article [CSS Specificity Wars](https://stuffandnonsense.co.uk/archives/css_specificity_wars.html)).

0 commit comments

Comments
 (0)