Gift Guide

Cascading Style Sheets

( 1 )


Technology trainer and Web site designer James Pence clearly presents the Cascading Style Sheet essentials for programmers and Web designers,including structuring content for cross-browser presentation,building designs using selectors and declarations,and XML integration.

Essential Skills for First-Time Developers Easily incorporate Cascading Style Sheets into your Web designs,using them to control Web page elements such as fonts,colors,and spacing. Cascading Style Sheets: A ...

See more details below
$30.42 price
(Save 7%)$32.95 List Price
Other sellers (Paperback)
  • All (10) from $1.99   
  • New (3) from $27.24   
  • Used (7) from $1.99   
Sending request ...


Technology trainer and Web site designer James Pence clearly presents the Cascading Style Sheet essentials for programmers and Web designers,including structuring content for cross-browser presentation,building designs using selectors and declarations,and XML integration.

Essential Skills for First-Time Developers Easily incorporate Cascading Style Sheets into your Web designs,using them to control Web page elements such as fonts,colors,and spacing. Cascading Style Sheets: A Beginner's Guide uses real-world examples to illustrate the essential principles of the CSS syntax,and how they structure and present Web content. Learn to create inline,embedded,and external style sheets; use properties and values to influence Web page appearance; and explore CSS design models so that you can develop Web sites and page layouts with style sheets.

This Beginner's Guide is Designed for Easy Learning:

  • Modules—Each concept is divided into logical modules (chapters),ideal for individualized learning
  • Goals—Each module opens with the specific skills you'll have by the end of the module
  • Ask the Experts—Q&A sections throughout are filled with extra information and interesting commentary
  • 1-Minute Drills—Quick self-assessment sections to check your progress
  • Annotated Syntax—Example code annotated with commentary that points to the particular technique illustrated
  • Projects—Exercises contained in each module show how to apply what you are learning
  • Mastery Checks—End-of-module reviews that test your knowledge using short-answer,multiple-choice,fill-in-the-blank,and simplecoding questions
Read More Show Less

Product Details

  • ISBN-13: 9780072192957
  • Publisher: McGraw-Hill/OsborneMedia
  • Publication date: 11/26/2001
  • Pages: 484
  • Product dimensions: 0.97 (w) x 7.50 (h) x 9.25 (d)

Table of Contents

Acknowledgments xvii
Introduction xix
Part 1 A Painless Introduction to CSS
1 HTML and CSS: Focus on the Similarities 3
A Brief History of HTML and CSS 5
HTML's Documentary Origins 5
HTML's Inherent Limitations 5
Workarounds and Extensions 7
CSS Develops Alongside of HTML 8
Why CSS Seems Difficult 9
Reasons to Learn CSS 9
Review HTML Terms and Page Structure 11
Project 1-1 Create an HTML Sampler Page 14
CSS and HTML: Focus on the Similarities 17
Basic CSS Terminology 17
Basic CSS Syntax 19
Attaching Style Sheets 20
Project 1-2 Create Style Sheets 22
Mastery Check 24
2 Understanding and Using Selectors 27
How Selectors Work 28
Types of Selectors 28
Understand Type Selectors 29
Understand Descendent Selectors 29
Understand Attribute Selectors 31
Understand Pseudo-Classes and Pseudo-Elements 32
Project 2-1 Create an Unstyled Web Page 33
Work with Type Selectors 37
A List of Type Selectors 37
Basic Type Selector Syntax 38
Work with Descendent Selectors 40
Understand the HTML Document Tree 40
Using Descendent Selectors 42
Project 2-2 Apply Type and Descendent Selectors 44
Work with Attribute Selectors 47
Class Selectors 47
ID Selectors 48
Work with Pseudo-Classes and Pseudo-Elements 51
Understand Pseudo-Classes and Pseudo-Elements 51
Recognizing Pseudo-Classes and Pseudo-Elements 53
Project 2-3 Apply Class, ID, and "Pseudo" Selectors to Constitution.htm 54
Mastery Check 59
3 Surveying CSS Properties 61
Understand Properties and their Functions 62
Understand Properties 62
Five Categories of Properties 63
Project 3-1 Construct an HTML Practice Page 70
Working with Properties 74
Control Text Arrangement with Text Properties 74
Modify Fonts with Font Properties 78
Add Color with Color/Background Properties 80
Position Elements with Box Properties 83
Control Display with Classification Properties 86
Project 3-2 Add More Style to Fred's Travel Adventures 88
Mastery Check 93
4 Applying Values 95
Understand Values and Their Importance 96
Different Value Types 98
Specific Values 98
URL Values 100
Percentage Values 101
Color Values 102
Measurement Units 102
Absolute vs. Relative Units 105
Simplifying Color Values 106
Understand Additive Color Mixing 106
Easy Color Mixing 108
Alternative Color Values 110
Simplifying Measurement Units 112
Project 4-1 Create a Color Table 112
Mastery Check 119
5 Understanding Cascade and Inheritance 121
Understand Inheritance 122
How Inheritance Works 122
Non-Inherited Properties 125
Forcing Inheritance 126
Determining Specificity 127
How to Understand Specificity 127
How to Calculate Specificity 128
How to Use Specificity 129
The limportant Declaration 129
Understand the limportant Declaration 130
How to Use limportant 131
Understand the Cascade 133
Competing Style Sheets 134
Sort Out Style Sheets 135
Project 5-1 Experiment with Conflicting Styles and limportant 137
Mastery Check 143
Part 2 Exploring the CSS Toolbox
6 Working with Font Properties 147
CSS and Browser Compatibility 148
Use "Safe" Properties and Values 150
Test Your Pages 151
Create Alternate Style Sheets 151
Typewriters to Desktop Publishing 152
The Web, [left angle bracket]font[right angle bracket], and HTML 153
The Problem with HTML's [left angle bracket]font[right angle bracket] Element 153
The Advantages of CSS Font Properties 154
CSS 1 Font Properties 155
The font-family Property 155
The font-size Property 158
The font-style Property 163
The font-variant Property 164
The font-weight Property 166
The font: Shorthand Property 171
CSS 2 Font Properties 172
The font-stretch Property 172
The font-size-adjust Property 173
Project 6-1 Applying Font Properties 173
Mastery Check 180
7 Work with Text Properties 181
What Font Properties Do 182
What Text Properties Do 182
The CSS Text Properties 183
Project 7-1 Experiment with Text Properties 184
Working with Text Properties 187
The Word-Spacing Property 187
The Letter-Spacing Property 189
The Text-Decoration Property 190
The Vertical-Align Property 193
The Text-Align Property 196
The Text-Transform Property 197
The Text-Indent Property 198
The Line-Height Property 201
The Text-Shadow Property (CSS2) 203
Project 7-2 Create a Font Sampler 204
Mastery Check 210
8 Applying Color and Background Properties 211
Add Color and Images 212
CSS Overcomes HTML's Limitations 213
The Color Property 214
The Background-Color Property 216
The Background-Image Property 218
Project 8-1 Add Colors and a Background Image 221
Control Image Placement and Attachment 224
The Backround-Repeat Property 224
The Background-Attachment Property 228
The Background-Position Property 229
The background: (shorthand) Property 233
Project 8-2 Apply Background Properties 234
Mastery Check 239
9 Using Box Properties 241
Understand the Box Model 242
HTML Tables and the Box Model 242
Box Model Basics 244
Project 9-1 Work with the Box Model 249
The Box Properties 251
The Margin Properties 251
The Padding Properties 256
The Border Properties 259
Project 9-2 Playing with the Box Properties 267
Mastery Check 270
10 Applying the Descriptive Properties 271
Understand the Descriptive Properties 272
Descriptive Properties and HTML 272
Descriptive Properties and XML 273
Descriptive Properties and Browser Compatibility 274
The Display Property 276
The display Property in CSS 1: Element Behavior Control 276
The display Property in CSS 2: Heading-Related Values 278
Table-Related Values 281
Project 10-1 Experiment with Display 283
Project Summary 286
The Other Descriptive Properties 287
The white-space Property 287
The list-style-type Property 290
The list-style-image Property 294
The list-style-position Property 295
The list-style Property 296
Project 10-2 Create a Nested List 298
Mastery Check 302
Part 3 Designing with CSS
11 The Visual Model 305
Understand the Visual Model 306
Box Generation 306
Box Dimensions 311
The Width and Height Properties 315
The min-width and max-width Properties (CSS 2) 316
The Min-Height and Max-Height Properties (CSS 2) 317
Simple Layout with Float and Clear (CSS 1) 318
The Float Property 318
The Clear Property 322
Project 11-1 Create a Simple Layout with Float and Clear 323
Element Positioning (CSS 1) 327
Positioning Schemes 327
The Position Property 331
The Top, Right, Bottom, and Left Properties 332
Project 11-2 Playing with Blocks 332
Mastery Check 337
12 CSS Visual Effects 339
Understand Overflow and Clip 340
The Overflow Property 340
The Clip Property 346
Control Visibility and Layering 351
The Visibility Property 351
The z-Index Property 354
Understand Dynamic HTML 356
Project 12-1 Create a Dynamic Web Page 359
Mastery Check 366
13 CSS and Site Design 367
Understand Good Web Design 368
Web Site Planning 368
Web Site Design 369
Project 13-1 Plan a Web Site 375
Design with Stylesheets 376
Creating "Lean" Stylesheets 376
Creating "Legible" Stylesheets 378
Project 13-2 Experiment with CSS Layouts 380
Develop "Crash-Proof" Pages 385
Well-Formed HTML Documents 385
Valid HTML Documents 387
Valid CSS 389
Design for Cross-Browser Compatibility 390
Compatibility Options 390
Compatibility Resources 393
Mastery Check 395
14 Advanced CSS 397
Understand CSS 2 398
CSS 1 Property Categories 398
CSS 2 Models and Property Categories 399
Advanced CSS and the Beginner 400
Understand Advanced Selectors 401
The Universal Selector 402
Advanced Descendent Selectors 402
Attribute Selectors 405
Pseudo-Classes and Pseudo-Elements 406
Project 14-1 Experiment with Advanced Selectors 410
Advanced Properties 414
Aural Style Sheets 414
User Interface Properties 415
Paged Media 416
Font Specification Properties 417
CSS 2 Resources 418
Mastery Check 420
Part 4 Appendixes
A Answers to Mastery Checks 423
Module 1 HTML and CSS: Focus on the Similarities 424
Module 2 Understanding and Using Selectors 424
Module 3 Surveying CSS Properties 425
Module 4 Applying Values 425
Module 5 Understanding Cascade and Inheritance 426
Module 6 Working with Font Properties 427
Module 7 Work with Text Properties 428
Module 8 Applying Color and Background Properties 428
Module 9 Using Box Properties 429
Module 10 Applying the Descriptive Properties 430
Module 11 The Visual Model 431
Module 12 CSS Visual Effects 432
Module 13 CSS and Site Design 432
Module 14 Advanced CSS 433
B CSS 1 Quick Reference 435
HTML Selectors 436
Pseudo-Class Selectors 436
Pseudo-Element Selectors 437
Font Properties 437
Text Properties 437
Margin Properties 438
Padding Properties 438
Border Style Properties 439
Border Width Properties 439
Border Color Properties 440
Border Properties 440
Color / Background Properties 441
Descriptive Properties 441
Positioning and Visual Effects Properties 442
Index 443
Read More Show Less

Customer Reviews

Average Rating 4
( 1 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & 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 & 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 & 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 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


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & 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 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 May 9, 2004

    Good once you know the basics

    Use this book once you have Pence's basic HTML book down. It will provide many new tools to spruce up your exist web programming.

    Was this review helpful? Yes  No   Report 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)