January 2020

Inheritance – CSS

In CSS, certain styles that are applied to a parent element can be inherited by its children.

Specificity – CSS

In CSS, selectors with higher specificity will override selectors with lower specificity when they are modifying the same properties.

The cascade – CSS

In general, if multiple rules are trying to modify a property, the rule that is farthest down a stylesheet gets applied when all of the rules have the same specificity.