CSS Pocket Reference : Visual Presentation for the Web Intro Copyright Table of Contents Preface Conventions Used in This Book Using Code Examples OReilly Safari How to Contact Us Chapter 1. Basic Concepts Adding Styles to HTML Inline Styles Embedded Stylesheets External Stylesheets Rule Structure At rules Comments Style Precedence Specificity Calculations Inheritance The Cascade Element Classification Nonreplaced Elements Replaced Elements Element Display Roles Block Level Inline Level Basic Visual Layout Block Level Layout Inline Layout Floating Positioning Types of Positioning The Containing Block Flexible Box Layout Grid Layout Table Layout Table Arrangement Rules Fixed Table Layout Automatic Table Layout Collapsing Cell Borders Vertical Alignment Within Cells Chapter 2. Values Keywords Color Values Number Values Percentage Values Length Values Absolute Length Units Relative Length Units Fraction Values URIs Angles Times Frequencies Position Strings Identifiers Attribute Values Calculation Values Variable Values Chapter 3. Selectors and Queries Selectors Universal Selector Type Selector Descendant Selector Child Selector Adjacent Sibling Selector General Sibling Selector Class Selector ID Selector Simple Attribute Selector Exact Attribute Value Selector Partial Attribute Value Selector Beginning Substring Attribute Value Selector Ending Substring Attribute Value Selector Arbitrary Substring Attribute Value Selector Language Attribute Selector Structural Pseudo Classes :empty :first child :first of type :lang :last child :last of type :nth child(an±b) :nth last child(an±b) :nth last of type(an±b) :nth of type(an±b) :only child.