13.07.2015 Views

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ContentsImporting <strong>Style</strong> <strong>Sheets</strong> 56Inline <strong>Style</strong>s 56Summary 57Exercises 58Chapter 3: Selectors 59Class and ID Selectors 60Class Selectors 60ID Selectors 63The Universal Selector 68Descendant Selectors 71Direct Child Selectors 75Next Sibling Selector 79Attribute Selectors 82Selection Based on the Value of an Attribute 83Attribute Substring Selectors 87Pseudo-Elements :first-letter and :first-line 93Pseudo-Classes 97Dynamic Pseudo-Classes 97The first-child Structural Pseudo-Class 102Summary 106Exercises 106Chapter 4: The Cascade and Inheritance 109The Cascade 109Calculating the Specificity of a Selector 112!important Rules 118Inheritance 121Summary 125Exercises 126Part II: PropertiesChapter 5: Text Manipulation 131The letter-spacing Property 132The word-spacing Property 137Indenting Paragraph Text Using text-indent 141Aligning Text with the text-align Property 147The text-decoration Property 150x

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!