Click to buy
Cascading Style Sheets: The Definitive Guide
By Eric A.
Meyer
Introduction
What a Mess
Rich Styling
Ease of Use
Using Your Styles on Multiple Pages
Cascading
Preparing for the Future
Implementations
Bringing CSS and HTML Together
Summary
Printer Friendly Version
Chapter 1
HTML and CSS
Summary
In order to facilitate a return to structural HTML, something
was needed to permit authors to specify how a document should be displayed.
CSS fills that need very nicely, and far better than the various
presentational HTML elements ever did (or probably could have done). For the
first time in years, there is hope that web pages can become more structural,
not less, and at the same time the promise that they can have a more
sophisticated look than ever before.
In order to ensure that this transition goes as smoothly as
possible, HTML introduces a number of ways to link HTML and CSS together while
still keeping them distinct. This allows authors to simplify document
appearance management and maximize their effectiveness, thereby making their
jobs a little easier. The further benefits of improving accessibility and
positioning documents for a switch to an XML world make CSS a compelling
technology.
As for user agent support, the LINK
element has been universally supported, as have both the STYLE element and attribute. @import didn't fare so well, though, being ignored
outright by Navigator 4. This is not such a major tragedy, annoying though it
might be, since the LINK element will still let you
bring external style sheets into play.
In order to fully understand how CSS can do all of this, authors
need a firm grasp of how CSS handles document structure, how one writes rules
that behave as expected, and most of all, what the "Cascading" part of the
name really means.
Printer Friendly Version
Introduction
What a Mess
Rich Styling
Ease of Use
Using Your Styles on Multiple Pages
Cascading
Preparing for the Future
Implementations
Bringing CSS and HTML Together
Summary