Prev | Current Page 7 | Next

Charles Wyke-Smith

"Stylin' with CSS: A Designer's Guide 2nd Edition"

I have included this library
with the downloadable code examples for the book on the Web site,
www.stylinwithcss.com. It??™s at an early stage but already contains
many useful components that have saved me hours of development
work, and I hope will do the same for you. I will continue to publish
new code for this library and make it available for download.
The other goal, economy of code, is another theme that runs
through this new edition. For example, by adding a style at the
highest possible level in the document hierarchy, that style can
then in?¬‚ uence numerous elements. I often see CSS style sheets
that declare the same font-family on every heading and paragraph,
but adding that font-family to the top-level body tag means you
xiii
only write and maintain that style in one place. The underlying
concept is a programming maxim known as DRY, meaning Don??™t
Repeat Yourself. We will look at many other examples like this in
the chapters ahead.
Master the Key Techniques
I??™ve also come to realize that truly understanding just a few important
CSS techniques can turn a struggling newbie into a competent
CSS journeyman. These techniques include correctly using the positioning
and display properties, and understanding how ?¬‚ oating and
clearing really work. I have dedicated Chapter 4 to explaining these
aspects of CSS and showing simple examples that illustrate how to
apply them in practice.


Pages:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25