O'Reilly logo

Cascading Style Sheets: Designing for the Web, Third Edition by Bert Bos, Håkon Wium Lie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Cascading and Inheritance

CSS is sometimes referred to as a style sheet language because the most visible part of CSS is the language in which one expresses style sheets. However, a major part of CSS is the mechanism that interprets style sheets and resolves conflicts between rules. All browsers that support CSS are required to use the same mechanism for this. The mechanism has two main parts: cascading and inheritance.

Inheritance was introduced in Chapter 2, “CSS,” where we briefly described cascading. However, we left out the technical details of how inheritance and cascading work. We present those in this chapter. You do not need to understand this chapter in detail to use CSS productively, but if you ever wonder why one rule ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required