美麦克法兰
David Sawyer McFarland是位于俄勒冈州波特兰的一家网站开发和培训公司即Sawyer McFarland Media, Inc.的总裁。他从1995年开始创建网站,当时他设计的第一个网站是针对通讯专家的一本在线杂志。他曾经是位于伯克利的加利福尼亚大学和伯克利多媒体研究中心的网站管理员,并对Macworld.com基于CSS驱动的重新设计进行了完整的监控。
目錄:
The Missing Credits
Introduction
Part One: CSS Basics
CHAPTER 1: HTMLforCSS
HTML: Past and Present
Writing HTML for CSS
The Importance of the Doctype
Making Sure Internet Explorer Is Up-to-Date
CHAPTER 2: Creating Styles and Style Sheets
Anatomy of a Style
Understanding Style Sheets
Internal Style Sheets
External Style Sheets
Tutorial: Creating Your First Styles
CHAPTER 3: Selectors: Identifying What to Style ...
Tag Selectors: Page-Wide Styling
Class Selectors: Pinpoint Control
ID Selectors: Specific Page Elements
Styling Groups of Tags
Styling Tags Within Tags
Pseudo-Classes and Pseudo-Elements
Attribute Selectors
Child Selectors
Siblings
The :not Selector
Tutorial: Selector Sampler
CHAPTER 4: Saving Time with Style Inheritance
What Is Inheritance?
How Inheritance Streamlines Style Sheets
The Limits of Inheritance
Tutorial: Inheritance
CHAPTER 5: Managing Multiple Styles: The Cascade
How Styles Cascade
Specificity: Which Style Wins
Controlling the Cascade
Tutorial: The Cascade in Action
Part Two: Applied CSS
CHAPTER 6: Formatting Text
Using Fonts
Using Web Fonts
Discovering Google Web Fonts
Adding Color to Text
Changing Font Size
Formatting Words and Letters
Adding Text Shadow
Formatting Entire Paragraphs
Styling Lists
Tutorial: Text Formatting in Action
CHAPTER 7: Margins, Padding, and Borders
Understanding the Box Model
Controling Space with Margins and Padding
Adding Borders
Coloring the Background
Creating Rounded Corners
Adding Drop Shadows
Determining Height and Width
Wrapping Content with Floating Elements
Tutorial: Margins, Backgrounds, and Borders
CHAPTER 8: Adding Graphics to Web Pages
Discovering CSS and the Tag
Adding Background Images
Controlling Repetition
Positioning a Background Image
Using Background Property Shorthand
Using Multiple Background Images
Utilizing Gradient Backgrounds
Applying Easy Gradients with Colorzilla
Tutorial: Enhancing Images
Tutorial: Creating a Photo Gallery
Tutorial: Using Background Images
CHAPTER 9: Sprucing Up Your Site''s Navigation
Selecting Which Links to Style
Styling Links
Building Navigation Bars
CSS-Style Preloading Rollovers
Styling Particular Types of Links
Tutorial: Styling Links
Tutorial: Creating a Navigation Bar
CHAPTER 10: CSS Transforms, Transitions, and Animations..
Transforms
Transitions
Animations
Tutorial
CHAPTER 11: Formatting Tables and Forms
Using Tables the Right Way
Styling Tables
Styling Forms
Tutorial: Styling a Table
Tutorial: Styling a Form
Part Three: CSS Page Layout
CHAPTER 12: Introducing CSS Layout
Types of Web Page Layouts
How CSS Layout Works
Layout Strategies
CHAPTER 13: Building Float-Based Layouts
Applying Floats to Your Layouts
Overcoming Float Problems
Tutorial: Multiple Column Layouts
CHAPTER 14: Responsive Web Design
Responsive Web Design Basics
Setting Up a Web Page for RWD
Media Queries
Flexible Grids
Fluid Images
Responsive Web Design Tutorial
CHAPTER 15: Positioning Elements on a Web Page
How Positioning Properties Work
Powerful Positioning Strategies
Tutorial: Positioning Page Elements
Part Four: Advanced CSS
CHAPTER 16: CSS for the Printed Page
How Media Style Sheets Work
How to Add Media Style Sheets
Creating Print Style Sheets
Tutorial: Building a Print Style Sheet
CHAPTER 17: Improving Your CSS Habits
Adding Comments
Organizing Styles and Style Sheets
Eliminating Browser Style Interference
Using Descendent Selectors
Trying Different CSS for Internet Explorer
Part Five: Appendixes
APPENDIX A: CSS Property Reference
CSS Values
Text Properties
List Properties
Padding, Borders, and Margins
Backgrounds
Page Layout Properties
Animation, Transform, and Transition Properties
Table Properties
Miscellaneous Properties
APPENDIX B: CSS Resources
References
CSS Help
CSS Tips, Tricks, and Advice
CSS Navigation
CSS Layout
Showcase Sites
CSS Books
CSS Software
Index