CSS Cookbook: Quick Solutions to Common CSS Problems

Front Cover
"O'Reilly Media, Inc.", Dec 15, 2009 - Computers - 732 pages

Learn how to solve the real problems you face with CSS. This cookbook offers hundreds of practical examples for using CSS to format your web pages, and includes code samples you can use right away. You'll find exactly what you need, from the basics to complex hacks and workarounds.

Each recipe explains how to customize a solution to meet your needs, and each chapter features a sample design that showcases the topics discussed. You'll learn about the behavior of the latest browsers-including IE 8, Firefox 3, Safari 4, and Google Chrome—and how you can resolve differences in the ways they display your web pages. Arranged in a convenient format for quick reference, this third edition is a valuable companion for anyone working with CSS.

  • Learn the basics, such as the CSS rule structure
  • Work with web typography and page layout
  • Create effects for images and other page elements
  • Learn techniques for configuring lists, forms, and tables
  • Design effective web navigation and create custom links
  • Get creative by combining CSS with JavaScript
  • Learn useful troubleshooting techniques
  • Explore features of HTML5 and CSS3
 

Contents

Chapter 1 Using HTML Basics
1
Chapter 2 CSS Basics
33
Chapter 3 Web Typography
105
Chapter 4 Images
179
Chapter 5 Page Elements
265
Chapter 6 Lists
299
Chapter 7 Links and Navigation
341
Chapter 8 Forms
397
Chapter 12 Hacks Workarounds and Troubleshooting
551
Chapter 13 Designing with CSS
569
Chapter 14 Interacting with JavaScript
623
Appendix A Resources
645
Appendix B CSS 21 Properties and Proprietary Extensions
651
Appendix C CSS 21 Selectors PseudoClasses and PseudoElements
669
Appendix D CSS3 Selectors and PseudoClasses
673
Appendix E Styling of Form Elements
677

Chapter 9 Tables
453
Chapter 10 Designing Web Pages for Printing
481
Chapter 11 Page Layouts
505

Other editions - View all

Common terms and phrases

Bibliographic information