Cascading Style Sheets: Designing for the Web, Third Edition / Edition 3

Paperback (Print)
Rent
Rent from BN.com
$28.75
(Save 48%)
Est. Return Date: 08/18/2013
Buy New
Buy New from BN.com
$35.33
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 96%)
Other sellers (Paperback)
  • All (23) from $1.99   
  • New (11) from $21.98   
  • Used (12) from $1.99   

Overview

In this updated edition to their original best-selling classic, the co-creators of CSS clearly, logically, and painlessly explain the hows and whys and ins and outs of the visual formatting language that is their gift to us. The Web would be a poorer place without Messieurs Bos and Lie. Your shelf will be richer for the addition of this book.

Rely on it. Study it. Savor it.

The Indispensible CSS Tutorial and Reference—Straight from the Creators of CSS

Direct from the creators of CSS, this is the definitive guide to CSS, today's indispensable standard for controlling the appearance of any Web or

Cascading Style Sheets: Designing for the Web, Third Edition covers every CSS 2.1 improvement and fix, from new height/width definitions in absolutely positioned elements to new clip property calculations. Clear, readable, and thorough, it's the one must-have CSS resource for every Web developer, designer, and content provider. Coverage includes

  • Mastering essential CSS concepts: Rules, declarations, selectors, properties, and more
  • Working with type: From absolute/relative units to font size and weight
  • Understanding CSS objects: Box model, display properties, list styles, and more
  • Exercising total control over spacing and positioning
  • Specifying colors for borders and backgrounds
  • Managing printing: Margins, page breaks, and more
  • Implementing media-specific style sheets for audio rendering, handhelds, and other forms of presentation
  • Moving from HTML extensions to CSS: Five practical case studies
  • Making the most of cascading and inheritance
  • Using external style sheets and @import
  • Integrating CSS with
  • Optimizing the performance of CSS pages
  • Includes a handy CSS Quick Reference printed on the inside covers

© Copyright Pearson Education. All rights reserved.

Read More Show Less

Editorial Reviews

From Barnes & Noble
The Barnes & Noble Review
Clear, precise, and accurate, Cascading Style Sheets: Designing for the Web, Third Edition won’t just teach you CSS 2.1 -- it’ll be your definitive reference for years to come. This book’s authors quite literally invented CSS. Surprisingly, perhaps, they’re equally good at explaining it.

This book covers all of CSS, from beginner’s level (“gluing” style sheets to documents) to the most complex examples of cascading and inheritance. You'll get intelligible explanations of every core concept -- rules, declarations, selectors, inheritance, properties, and more -- both the hows and the whys. It covers typography, spacing, positioning, borders, backgrounds, colors, tables, margins, page breaks, even using CSS with XML documents.

It’s been polished through three editions, and reflects more CSS experience than you can find anywhere else. If, like most web professionals, you rely heavily on CSS, it ought to be next to your computer. Bill Camarda, from the May 2005 Read Only

Library Journal
Cascading style sheets (CSS) were developed by Lie and Bos for the World Wide Web Consortium to provide authors with the tools to manage the aesthetics of web site design. For now, they are not in wide distribution and only the most recent browsers can make use of them. But those who spend a weekend with this book will recognize their importance and become converts. Those who have to deal with a great deal of information for many sources and make sure it all looks good and consistent will see that CSS is an elegant answer. And this book is the best introduction to the next innovation on the web.
Read More Show Less

Product Details

  • ISBN-13: 9780321193124
  • Publisher: Addison-Wesley
  • Publication date: 4/25/2005
  • Edition description: REV
  • Edition number: 3
  • Pages: 416
  • Sales rank: 803,409
  • Product dimensions: 6.96 (w) x 9.10 (h) x 0.73 (d)

Meet the Author

ABOUT THE AUTHORS

HåKON WIUM LIE is the CTO of Opera Software. His job is to make sure Opera remains a better, smaller, and faster browser than the one you know. Before joining Opera in 1999, Håkon worked at W3C, where he was responsible for the development of Cascading Style Sheets—a concept he proposed while working at CERN in 1994. Håkon holds an MS degree in visual studies from the MIT Media Lab.

BERT BOS, along with Lie, was one of the original authors of CSS. He joined W3C in 1995 to launch its internationalization activities and currently coordinates its style sheet activities.

© Copyright Pearson Education. All rights reserved.

Read More Show Less

Read an Excerpt

Cascading Style Sheets, Third Edition, Designing for the Web

Since its introduction in 1996, Cascading Style Sheets (CSS) has revolutionized web page design. Now, in 2004, most web pages use CSS, and many designers base their layouts entirely on CSS. To do so successfully requires a good understanding of how CSS works. The purpose of this book is to describe how designers can take full advantage of CSS 2.1, which is the newly released update of the specification.

CSS's journey from an idea to a specification–and then on to a specification designers can rely on–has been long and arderous. The creator of the CSS Zen Garden (described in Chapter 12, "From HTML extenstions to CSS") describes it this way:

Littering a dark and dreary road lay the past relics of browser-specific tags, incompatible DOMs, and broken CSS support. Today, we must clear the mind of past practices. Web enlightenment has been achieved thanks to the tireless efforts of folk like the W3C, WaSP and the major browser 1 creators.

Indeed, we believe the web is a more enlightened place now that CSS have matured to a stage where it can be used for advanced layouts in a range of browsers. This book will tell you all you need to know to start using CSS.

© Copyright Pearson Education. All rights reserved.

Read More Show Less

Table of Contents

Chapter 1: The Web and HTML
The Web
Markup Languages
Dodging the Limitations of HTML
HTML Basics
Document Trees
Chapter 2: CSS 30
Rules and Style Sheets
"Gluing" Style Sheets to the Document
Browsers and CSS
Tree structures and inheritance
Overriding Inheritance
Properties that don't inherit
Common tasks with CSS
A word about Cascading
Chapter 3: The Amazing EM Unit and Other Best Practices
Chapter 4: CSS Selectors
Selector Schemes
Type Selectors
Simple attribute selectors
The STYLE Attribute
Combining Selector Types
Simple contextual selectors
External information: pseudo-classes and pseudo-elements
DIV and SPAN
Advanced attribute selectors
Advanced contextual selectors
Advanced pseudo-classes
Advanced pseudo-elements
The "any" selector
Chapter 5: Fonts
Typesetting terminology
Classifying font families
The font-family property
Font metrics
Length units
Percentages as values
The font-size property
The font-style property
The font-variant property
The font-weight property
The font property
The font-stretch property
Numbers as values
The font-size adjust property
The text-decoration property
The text-transform property
More information about fonts
Chapter 6: WebFonts
Prerequisites for WebFonts
Font Descriptions
Font Descriptors
Basic font descriptors
Resource descriptors
The Unicode-range descriptor
Matching descriptors
Synthesis descriptors
Alignment descriptors
Chapter 7: The Fundamental Objects
The box model
The display property
Creating side-heads
Achieving different effects
More about lists - the list-style properties
The list-style-type property
The list-style-image property
The list-style-position property
The list-style property
Generated text, counters and quotes
The white-space property
Chapter 8: Space Inside Boxes
Space inside Block-Level Elements
The text-align property
Right aligning text
Justifying text
The text-indent property
Using the text-indent property
The line-height property
Using the line-height property
The word-spacing property
Using word spacing
The letter-spacing property
The vertical-align property
Chapter 9: Space Around Boxes
Margins and the margin properties
Using the margin property
Common usages of the margin properties
The padding properties
The border properties group
The border-color properties
The border-style properties
The border-width properties
Using the border-width properties
The border properties
Using the border properties
Working with the border properties
Outline borders
Collapsing margins
The width property
The height property
The clear property
Minimum and maximum widths and heights
The whole story on width computation
Case 1: no value is "auto"
Case 2: one value is "auto"
Case 3: two or three of the three values are "auto"
Overflow
Chapter 10: Relative and Absolute Positioning
The position property
The containing block
Relative positioning
Fixed positioning
Absolute positioning
The z-index property
Making elements invisible
Chapter 11: Colors
Specifying colors
The properties
Setting the color of a border
Setting the color of hyperlinks
The background properties
The background color property
The background image property
The background repeat property
The background attachment property
The background position property
The background property
Setting the background of the canvas
Shadows
Chapter 12: Printing and Other Media
Page breaks
Page areas
Media-specific style sheets
Chapter 13: Aural Style Sheets
Introduction to aural style sheets
Volume properties: volume
Speaking properties: speak
Pause properties: pause-before, pause-after, and pause
Cue properties: cue-before, cue-after, and cue
Mixing properties: play during
Spatial properties: azimuth and elevation
Voice characteristic properties: speech-rate, voice-family, pitch, pitch-range, stress, and richness
Speech properties: speak-punctuation and speak-numeral
Chapter 14: From HTML Extensions to CSS
Case 1: Magnet
Case 2: Cyberspazio
Case 3: "The form of the book"
Case 4: "The new typography"
Case 5: TSDesign
Chapter 15: Cascading and Inheritance
Example 1: The Basics
Example 2: conflicts appear
Example 3: accommodating user styles
Example 4: a more complex example
The "inherit" keyword
Chapter 16: External Style Sheets
Why external style sheets?
External HTML style sheets
Linking to style sheets
External XML style sheets
W3C Core styles
Chapter 17: Other Approaches
Creating a document without using a style sheet
Using a different format from HTML
Using XSL
Chapter 18: XML Documents
Experimenting with XML
Some examples
Chapter 19: Tables
The parts of a table
The collapsing borders model
The separated borders model
Alignment
Sizes
Setting background colors
"Collapsing" columns and rows
Inline tables
XML and tables
Chapter 20: The CSS Saga
Browsers
Appendix A: HTML 4.0 Quick Reference
Document structure
The HEAD element
The BODY element
Text-level elements
Special characters
Appendix B: Reading Property Value Definitions
Multiple values
Tying it all together
Appendix C: System Colors:
Index
Read More Show Less

Introduction

Since its introduction in 1996, Cascading Style Sheets (CSS) has revolutionized web page design. Now, in 2004, most web pages use CSS, and many designers base their layouts entirely on CSS. To do so successfully requires a good understanding of how CSS works. The purpose of this book is to describe how designers can take full advantage of CSS 2.1, which is the newly released update of the specification.

CSS's journey from an idea to a specification–and then on to a specification designers can rely on–has been long and arderous. The creator of the CSS Zen Garden (described in Chapter 12, "From HTML extenstions to CSS") describes it this way:

Littering a dark and dreary road lay the past relics of browser-specific tags, incompatible DOMs, and broken CSS support. Today, we must clear the mind of past practices. Web enlightenment has been achieved thanks to the tireless efforts of folk like the W3C, WaSP and the major browser 1 creators.

Indeed, we believe the web is a more enlightened place now that CSS have matured to a stage where it can be used for advanced layouts in a range of browsers. This book will tell you all you need to know to start using CSS.


Read More Show Less

Foreword

When the Web was in its infancy, seven years ago or so, I felt greatly relieved at the final removal of all the totally unsolvable problems of fixed format presentation. In the young Web, there were no more pagination faults, no more footnotes, no silly word breaks, no fidgeting the text to gain that extra line that you sorely needed to fit everything on one page. In the window of a Web page on the NeXTStep system, the text was always clean. Better that that: I decided what font it came out in, how big I wanted the letters, what styles I chose for definition lists and where tabs went.

Then we descended into the Dark Ages for several years, because the Web exploded into a community that had not idea that such freedom was possible, but worried about putting on the remote screen exactly what they thought their information should look like. I've read recommendations against using structure markup because you have no control over what comes out the other side. Sad.

You have by now understood that I'm firmly in the camp of those who think that quality of content comes first, and presentation comes later. But of course, I'm not entirely right here: presentation is important. Mathematical formulas are always presented in a two-dimensional layout.

Fortunately, SGML's philosophy allows us to separate structure from presentation, and the Web DTD, HTML, is no exception. Even in the NeXTStep version of 1990, Tim Berneres-Lee provided for style sheets, though at a rudimentary level (we had other things to do then!)

Today, style sheets are becoming a reality again, this time much more elaborate. This is an important milestone for the Web, and we should stop for a minute to reflect on the potential benefits and pitfalls of the technology.

I followed the CSS effort from its inception - mostly over cups of coffee with Hakon at CERN - and I've always had one concern: is it possible to create powerful enough style sheet "language" without introducing the complexity of programming.

The CSS described in this book shows that you can create some quite stunning presentations without programming. While the programmer in me may be a little disappointed, the minimalist in me is comforted. In fact, I'll never need this much freedom and special effects, but then I'm not a graphic artist. Anything that needs more compilation effectively becomes an image, and should be treated as such. I feel therefore that the middle part of the spectrum between pure ASCII text and full images is effectively covered by the power of CSS, without introducing the complexity of programming.

You have here a book on presentation. But it is presentation of information that should also remain structured, so that your content can be effectively used by others, while retaining the specific visual aspects you want to give it. Use CSS with care. It is the long-awaited salt on the Web food: a little is necessary, too much is not good cooking.

The efforts of the authors have finally brought us what we sorely needed: the author's ability to shape the content without affecting the structure. This is good news for the Web!
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 Customer Reviews
  • Anonymous

    Posted April 1, 2012

    No text was provided for this review.

Sort by: Showing 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)