Hour Seven: Cascading and Inheritance
The cascade is one of the key concepts of Cascading Style Sheets -- so important, in fact, that the language was named after it. The cascade defines how you combine rules, including rules from different sources -- some provided by the Web developer, some by the browser, and some from the user.
When these are combined, values for properties on individual HTML tags are calculated. Some of these take their values directly from the CSS rules, whereas others are derived from other properties.
In this hour, you'll learn
- What the secret formula behind the cascade really is
- Which CSS rules have the highest weight, and how those relate to HTML attributes
- How you can override the order of the cascade when writing CSS rules
- How the user can supply her own style sheet to express her preferences for display, and how those are balanced with the author's desires
Sample Code
There are no code samples for this hour.
Web Links
These are the links presented in this hour, given here for easy reference.
Updates and Errata
There are currently no updates to this hour's content.