CSS Basics
So, now, let's take a look at some of the basics of CSS. First, Cascading Stylesheets are cascading. That means that you can actually build hierarchies of stylesheets, by importing one stylesheet into another. When you do this, the rules from the sheets are combined, and you can use this to build complex stylesheets from a series of simple stylesheets.
For our purposes of discussion, we will not do much with cascading. In this chapter, we will work with a one-stylesheet-to-one-XML-document model. If you're interested in learning more about cascading and multiple stylesheets, there are thousands of CSS tutorials and hundreds of CSS books available on the market.
Rules and Selectors
A CSS Stylesheet is simply a series of rules that describe ...
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