educative.io

Example for rule #3

Can an example be provided for rule #3? Specifically:

  1. The selector with a higher priority location wins. If the first two steps do not announce a winner, the final decision is made by the location of the rule. According to the location where the selector was defined, the one with the highest priority can be found (there is exactly one of them), and the rule at this location wins the right to set up the particular property.

Course: Web Development: Unraveling HTML, CSS, and JavaScript - Learn Interactively
Lesson: The Cascading Order - Web Development: Unraveling HTML, CSS, and JavaScript

Nevermind, I see a section later on that talks about location priority. Maybe it’ll be a good idea to mention here that this rule is explained in a later section.


Course: Web Development: Unraveling HTML, CSS, and JavaScript - Learn Interactively
Lesson: The Cascading Order - Web Development: Unraveling HTML, CSS, and JavaScript

2 Likes

Thanks for your suggestion!! We will update this soon.

1 Like