CSS: The Definitive Guide

CSS: The Definitive Guide

by Eric A. Meyer

Paperback(Third Edition)



CSS: The Definitive Guide, 3rd Edition , provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, lists and generated content, table layout, user interface, paged media, and more.

Simply put, Cascading Style Sheets (CSS) is a way to separate a document's structure from its presentation. The benefits of this can be quite profound: CSS allows a much richer document appearance than HTML and also saves time — you can create or change the appearance of an entire document in just one place; and its compact file size makes web pages load quickly.

CSS: The Definitive Guide, 3rd Edition , provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, lists and generated content, table layout, user interface, paged media, and more. Author Eric Meyer tackles the subject with passion, exploring in detail each individual CSS property and how it interacts with other properties. You'll not only learn how to avoid common mistakes in interpretation, you also will benefit from the depth and breadth of his experience and his clear and honest style. This is the complete sourcebook on CSS.

The 3rd edition contains:

  • Updates to reflect changes in the latest draft version of CSS 2.1
  • Browser notes updated to reflect changes between IE6 and IE7
  • Advanced selectors supported in IE7 and other major browsers included
  • A new round of technical edits by a fresh set of editors
  • Clarifications and corrected errata, including updated URLs ofreferenced online resources

Product Details

ISBN-13: 9780596527334
Publisher: O'Reilly Media, Incorporated
Publication date: 11/28/2006
Edition description: Third Edition
Pages: 538
Product dimensions: 7.00(w) x 9.19(h) x 1.10(d)

About the Author

Eric A. Meyer has been working with the Web since late 1993 and is an internationally recognized expert on the subjects of HTML, CSS, and web standards. A widely read author, he is also the founder of Complex Spiral Consulting (www.complexspiral.com), which counts among its clients America Online; Apple Computer, Inc.; Wells Fargo Bank; and Macromedia, which described Eric as "a critical partner in our efforts to transform Macromedia Dreamweaver MX 2004 into a revolutionary tool for CSS-based design."Beginning in early 1994, Eric was the visual designer and campus web coordinator for the Case Western Reserve University web site, where he also authored a widely acclaimed series of three HTML tutorials and was Project Coordinator for the online version of the Encyclopedia of Cleveland History and the Dictionary of Cleveland Biography, the first encyclopedia of urban history published fully and freely on the Web.Author of Eric Meyer on CSS and More Eric Meyer on CSS (New Riders), Cascading Style Sheets: The Definitive Guide (O'Reilly), and CSS2.0 Programmer's Reference (Osborne/McGraw-Hill), as well as numerous articles for the O'Reilly Network, Web Techniques, and Web Review, Eric also created the CSS Browser Compatibility Charts and coordinated the authoring and creation of the W3C's official CSS Test Suite. He has lectured to a wide variety of organizations, including Los Alamos National Laboratory, the New York Public Library, Cornell University, and the University of Northern Iowa. Eric has also delivered addresses and technical presentations at numerous conferences, among them An Event Apart (which he cofounded), the IW3C2 WWW series, Web Design World, CMP, SXSW, the User Interface conference series, and The Other Dreamweaver Conference.In his personal time, Eric acts as List Chaperone of the highly active css-discuss mailing list (www.css-discuss.org), which he cofounded with John Allsopp of Western Civilisation and which is now supported by evolt.org. Eric lives in Cleveland, Ohio, which is a much nicer city than you've been led to believe. For nine years, he was the host of "Your Father's Oldsmobile," a Big Band-era radio show heard weekly on WRUW 91.1 FM in Cleveland.You can find more detailed information on Eric's personal web page at http://www.meyerweb.com/eric.

Table of Contents

Conventions Used in This Book;
Property Conventions;
Using Code Examples;
How to Contact Us;
Safari® Enabled;
Chapter 1: CSS and Documents;
1.1 The Web's Fall from Grace;
1.2 CSS to the Rescue;
1.3 Elements;
1.4 Bringing CSS and XHTML Together;
1.5 Summary;
Chapter 2: Selectors;
2.1 Basic Rules;
2.2 Grouping;
2.3 Class and ID Selectors;
2.4 Attribute Selectors;
2.5 Using Document Structure;
2.6 Pseudo-Classes and Pseudo-Elements;
2.7 Summary;
Chapter 3: Structure and the Cascade;
3.1 Specificity;
3.2 Inheritance;
3.3 The Cascade;
3.4 Summary;
Chapter 4: Values and Units;
4.1 Numbers;
4.2 Percentages;
4.3 Color;
4.4 Length Units;
4.5 URLs;
4.6 CSS2 Units;
4.7 Summary;
Chapter 5: Fonts;
5.1 Font Families;
5.2 Font Weights;
5.3 Font Size;
5.4 Styles and Variants;
5.5 Stretching and Adjusting Fonts;
5.6 The font Property;
5.7 Font Matching;
5.8 Summary;
Chapter 6: Text Properties;
6.1 Indentation and Horizontal Alignment;
6.2 Vertical Alignment;
6.3 Word Spacing and Letter Spacing;
6.4 Text Transformation;
6.5 Text Decoration;
6.6 Text Shadows;
6.7 Summary;
Chapter 7: Basic Visual Formatting;
7.1 Basic Boxes;
7.2 Block-Level Elements;
7.3 Inline Elements;
7.4 Altering Element Display;
7.5 Summary;
Chapter 8: Padding, Borders, and Margins;
8.1 Basic Element Boxes;
8.2 Margins;
8.3 Borders;
8.4 Padding;
8.5 Summary;
Chapter 9: Colors and Backgrounds;
9.1 Colors;
9.2 Foreground Colors;
9.3 Backgrounds;
9.4 Summary;
Chapter 10: Floating and Positioning;
10.1 Floating;
10.2 Positioning;
10.3 Summary;
Chapter 11: Table Layout;
11.1 Table Formatting;
11.2 Table Cell Borders;
11.3 Table Sizing;
11.4 Summary;
Chapter 12: Lists and Generated Content;
12.1 Lists;
12.2 Generated Content;
12.3 Summary;
Chapter 13: User Interface Styles;
13.1 System Fonts and Colors;
13.2 Cursors;
13.3 Outlines;
13.4 Summary;
Chapter 14: Non-Screen Media;
14.1 Designating Medium-Specific Style Sheets;
14.2 Paged Media;
14.3 Aural Styles;
14.4 Summary;
Appendix A: Property Reference;
A.1 Visual Media;
A.2 Tables;
A.3 Paged Media;
A.4 Dropped from CSS2.1;
A.5 Visual Styles;
A.6 Paged Media;
A.7 Aural Styles;
Appendix B: Selector, Pseudo-Class, and Pseudo-Element Reference;
B.1 Selectors;
B.2 Pseudo-Classes and Pseudo-Elements;
Appendix C: Sample HTML 4 Style Sheet;

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

CSS: The Definitive Guide 4 out of 5 based on 0 ratings. 1 reviews.
BigBearYC More than 1 year ago
This book is several years old (published in 2007) and as a Definitive Guide, it covers CSS 2.1 which interfaces well with HTML 3.0 and 4.0. The current release is CSS 3, which works best when using HTML 5. The reason why I am working with the “older” version of CSS and HTML is to maintain better alignment with people who have “dated” computer setups. Not everyone is out purchasing the newest technology nor has everyone migrated from the slow dial up internet connections. Therefore I stay back a generation or two when doing website development. CSS (Cascading Style Sheets) is a way to simplify HTML programming and maintaining a standard or very similar appearance among web pages on a single website. One CSS file can be called from many HTML pages thereby providing a single location to manage fonts, colors, and page layouts and stylize the website for a consistent appearance. CSS: The Definitive Guide was first published in 2000 and now the third 2007 edition provides a very thorough layout for using CSS. The book provides a well-organized presentation demonstrating the coding structures for designing web pages while simplifying HTML. In fact, some HTML code has been deprecated (become obsolete) relying on using CSS code either from separate files called by the HTML page or CSS coding directly imbedded in the HTML web page. The first four chapters of Meyer’s book provides background material for learning the basic rules and use of classes; formatting CSS code, the elements for coding naming colors, fonts sizes; and various measuring units for laying out margins and spacing between various structure types (such as in boxes and table layouts). Then the book proceeds in the next eight chapters to describe the different aspects of coding that define a page layout. From chapter to respective chapter, Meyer covers fonts and text properties; layout of boxes; and then boxes’ associated use of positioning fonts with padding and margins; moving on into positioning boxes in a web page; and finally transitions to the stalwart of most web page structures laying out tables. I rate this book high in clarity as a guide for designing cascading style sheets interfaced within HTML coding for creating outstanding websites.