0%

Book Description

Some aspects of the CSS formatting model may seem counterintuitive at first, but as you’ll learn in this practical guide, the more you work with these features, the more they make sense. Author Eric Meyer gives you a good grounding in CSS visual rendering, from element box rules and concepts to the specifics of managing tricky layouts for block-level and inline elements.

Short and sweet, this book is an excerpt from the upcoming fourth edition of CSS: The Definitive Guide. When you purchase either the print or the ebook edition of Basic Visual Formatting in CSS, you’ll receive a discount on the entire Definitive Guide once it’s released. Why wait? Learn how to bring life to your web pages now.

Table of Contents

  1. Preface
    1. Conventions Used in This Book
    2. Safari® Books Online
    3. How to Contact Us
  2. 1. Basic Visual Formatting
    1. Basic Boxes
      1. A Quick Refresher
      2. The Containing Block
    2. Altering Element Display
      1. Changing Roles
      2. Block Boxes
      3. Horizontal Formatting
      4. Horizontal Properties
      5. Using auto
      6. More Than One auto
      7. Negative Margins
      8. Percentages
      9. Replaced Elements
      10. Vertical Formatting
      11. Vertical Properties
      12. Percentage Heights
      13. Auto Heights
      14. Collapsing Vertical Margins
      15. Negative Margins and Collapsing
      16. List Items
    3. Inline Elements
      1. Line Layout
      2. Basic Terms and Concepts
      3. Inline Formatting
      4. Inline Nonreplaced Elements
      5. Building the Boxes
      6. Vertical Alignment
      7. Managing the line-height
      8. Scaling Line Heights
      9. Adding Box Properties
      10. Changing Breaking Behavior
      11. Glyphs Versus Content Area
      12. Inline Replaced Elements
      13. Adding Box Properties
      14. Replaced Elements and the Baseline
      15. Inline-Block Elements
      16. Run-in Elements
      17. Computed Values
    4. Summary
18.119.104.95