Chapter 3. Structure and the Cascade
Chapter 2 target elements based on their ancestors,
attributes, sibling elements, and more. The structural tree is what
allows selectors to function and is also central to a similarly
crucial aspect of CSS: inheritance.
only inheritance but
also the specificity of the declarations, as well as the origin of
the declarations themselves. This process of consideration is
what's known as the cascade. We
will explore the interrelation between these three
mechanisms—specificity, inheritance, and the cascade—in
this chapter.
Above all, regardless of how abstract things may seem, keep going!
Your perseverance will be rewarded.
|