10 Inheritance and Cascading
In this chapter, I’ll address two other important topics about CSS: the inheritance principle, which refers to the details around defining and passing on CSS features, and the cascading principle, which refers to how a document can be formatted from a variety of stylesheets and different sources.
In this chapter, you’ll get to know the details about inheritance in CSS, which refers to how, when, and if a CSS feature gets defined and passed on in a central location. In the process, you’ll also learn how to force inheritance.
Besides inheritance, cascading is an indispensable topic in CSS; after all, the C in CSS stands for Cascading. Once you understand the principle of cascading, you can build one stylesheet on top ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access