Contents

Introduction

Part I New Toys

Chapter 1 Advanced Selectors

Child and Sibling Selectors

Child Combinator

Adjacent Sibling Combinator

General Sibling Combinator

Attribute Selectors

Selecting Based on the Existence of an HTML Attribute

Selecting Based on the Exact Value of an HTML Attribute

Selecting Based on the Partial Contents of an HTML Attribute Value

Selecting Based on the Beginning of an HTML Attribute Value

Selecting Based on the End of an HTML Attribute Value

Selecting Based on Space-Separated HTML Attribute Values

Pseudo-Classes

Firsts and Lasts

Nth Child Selectors

Taking Nth Child to the Next Level with Expressions

Using Keywords with Nth Child

Using Negative Numbers with Nth Child

The Best of the Rest

Bringing It All Together

Summary

Further Reading

Chapter 2 New Tools for Text

Perfecting Your Type

Ligatures

Kerning

Borrowing from SVG

Maintaining Legibility with Aspect Values

More Control with More New Toys

Font Stretch

Synthetic Font Styling

By the Numbers

Hyphenation

Writing Modes

The Direction Property

The Writing Mode Property

The Text Orientation Property

SVG to the Rescue!

Looking Good Is Half the Battle

Text Decoration

Masking Background Images Over Text

Text Shadow

Creating 3D Text

Creating Outer Glow

Summary

Further Reading

Chapter 3 New Tools for Backgrounds and Borders

More Control with CSS3 Backgrounds

Background Clip and Background Origin

Background Size

Understanding the Background Shorthand

Handling Box Breaks

Into the Future with the Image Function ...

Get CSS3 Pushing the Limits now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.