Ebook Hướng Dẫn CSS Nâng Cao: Giải Pháp Web Chuẩn Phần 1

Trường đại học

Apress

Chuyên ngành

Web Design

Người đăng

Ẩn danh

Thể loại

book

2006

109
2
0

Phí lưu trữ

35 Point

Mục lục chi tiết

Foreword

About the Authors

About the Technical Reviewer

1. Chapter 1: Setting the Foundations

1.1. Structuring your code

1.2. Use meaningful markup

1.3. IDs and class names

1.4. Divs and spans

1.5. Document types, DOCTYPE switching, and browser modes

1.6. Getting your styles to hit the target

1.7. The universal selector

1.8. Child and adjacent sibling selectors

1.9. The cascade and specificity

1.10. Using specificity in your stylesheets

1.11. Adding a class or an ID to the body tag

1.12. Planning, organizing, and maintaining your stylesheets

1.13. Applying styles to your document

1.14. Commenting your code

1.15. Adding structural comments

1.16. Note to self

1.17. Removing comments and optimizing your stylesheets

1.18. Organizing your stylesheets for easy maintenance

2. Chapter 2: Visual Formatting Model Recap

2.1. Box model recap

2.2. IE/Win and the box model

2.3. The visual formatting model

2.4. Line boxes and clearing

3. Chapter 3: Background Images and Image Replacement

3.1. Background image basics

3.2. Rounded-corner boxes

3.3. Fixed-width rounded-corner boxes

3.4. Flexible rounded-corner box

3.5. Easy CSS drop shadows

3.6. Drop shadows a la Clagnut

3.7. Onion skinned drop shadows

3.8. Fahrner Image Replacement (FIR)

3.9. Gilder/Levin method

3.10. Inman Flash Replacement (IFR) and Scalable Inman Flash Replacement (sIFR)

4. Chapter 4: Styling Links

4.1. Simple link styling

4.2. Fun with underlines

4.3. Fancy link underlines

4.4. Highlighting different types of link

4.5. Highlighting downloadable documents and feeds

4.6. Creating buttons and rollovers

4.7. Rollovers with images

4.8. Pixy-style rollovers

4.9. Visited-link styles

4.10. Pure CSS tooltips

5. Chapter 5: Styling Lists and Creating Nav Bars

5.1. Basic list styling

5.2. Creating a vertical nav bar

5.3. Highlighting the current page in a nav bar

5.4. Creating a horizontal nav bar

5.5. Simplified “sliding doors” tabbed navigation

5.6. CSS image maps

5.7. flickr-style image maps

5.8. A short note about definition lists

6. Chapter 6: Styling Forms and Data Tables

6.1. Styling data tables

6.2. Table-specific elements

6.3. summary and caption

6.4. thead, tbody, and tfoot

6.5. col and colgroups

6.6. Data table markup

6.7. Styling the table

6.8. Adding the visual style

6.9. Simple form layout

6.10. Useful form elements

6.11. The basic layout

6.12. Complicated form layout

6.13. Accessible date input

6.14. Multicolumn check boxes

6.15. Centering a design using auto margins

6.16. Centering a design using positioning and negative margins

6.17. Float-based layouts

6.18. Two-column floated layout

6.19. Three-column floated layout

6.20. Fixed-width, liquid, and elastic layout

6.21. Elastic-liquid hybrid

6.22. Liquid and elastic images

7. Faux columns

8. Chapter 8: Hacks and Filters

8.1. An introduction to hacks and filters

8.2. A warning about hacks and filters

8.3. Using hacks sensibly

8.4. Filtering separate stylesheets

8.5. Internet Explorer conditional comments

8.6. Band pass filters

8.7. Filtering individual rules and declarations

8.8. The child selector hack

8.9. Attribute selector hack

8.10. The star HTML hack

8.11. IE/Mac commented backslash hack

8.12. The escaped property hack

8.13. Tantek’s box model hack

8.14. The modified simplified box model hack

8.15. The !important and underscore hacks

8.16. The Owen hack

9. Chapter 9: Bugs and Bug Fixing

9.1. Common CSS problems

9.2. Problems with specificity and sort order

9.3. Problems with margin collapsing

9.4. Bug hunting basics

9.5. Isolate the problem

9.6. Creating a minimal test case

9.7. Fix the problem, not the symptoms

9.8. Ask for help

9.9. What is “layout”?

9.10. What effect does layout have?

9.11. Common bugs and their fixes

9.12. Double-margin float bug

9.13. Three-pixel text jog bug

9.14. IE 6 duplicate character bug

9.15. IE 6 peek-a-boo bug

9.16. Absolute positioning in a relative container

9.17. Stop picking on Internet Explorer

10. Case Study 1: More Than Doodles

10.1. About this case study

10.2. Controlling content area with descendant selectors

10.3. A note about naming conventions

10.4. Three-column layout

10.5. Two-column layout

10.6. One-column layout

10.7. Removing unwanted columns

10.8. Floating the columns

10.9. Floating the columns in the right place

10.10. Highlighting the current page based on the body class

10.11. Drop-in boxes for columns

10.12. Right-angled or rounded corners—you decide

10.13. Flat, right-angled corners

10.14. So, let’s prepare for something special

10.15. Transparent custom corners and borders

10.16. Combining classes for targeted actions

10.17. Image classes and exceptions

10.18. Dealing with links

10.19. Understanding the sidebar links

10.20. Checked-off visited links

10.21. LAHV, not LVHA

10.22. Highlighting external links

10.23. Floated drop shadows (gallery)

10.24. Casting the shadows

10.25. Floating the images

11. Case Study 2: Tuscany Luxury Resorts

11.1. About this case study

11.2. The fluid layout

11.3. Body and container

11.4. Content and sidebar

11.5. Resolving fluid layout issues

11.6. Aligning elements using absolute positioning

11.7. Background image techniques

11.8. Dividing the top in three

11.9. Logo image replacement

11.10. Initial cap image replacement

11.11. Coding a fluid image

11.12. Using a single list item for multiple elements

11.13. Coding the menu