Cascading Style Sheets by Example (範例學習層疊樣式表)

Steve Callihan, Steven E. Callihan

  • 出版商: QUE
  • 出版日期: 2001-11-07
  • 售價: $1,680
  • 貴賓價: 9.5$1,596
  • 語言: 英文
  • 頁數: 400
  • 裝訂: Paperback
  • ISBN: 0789726173
  • ISBN-13: 9780789726179
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

Cascading Style Sheets (CSS) by Example allows you to learn the fundamentals of CSS by taking you through small, gradual steps. It provides examples using CSS in "real world" scenarios. Cascading Style Sheets (CSS) by Example follows a logical, linear teaching style that will ultimately have you using CSS to utilize more control over the appearance and styling of Web pages.

Table of Contents

Introduction.

I. CREATING YOUR FIRST STYLE SHEET.

1. Getting Oriented.

What Is a Style Sheet? Implementation of CSS in Browsers. CSS and HTML. Downloading and Extracting the Example Files. Using a Text Editor to Work with the Examples. What's Next?


2. Setting Your Page's Base Styles.

Checking Which Browser You're Using. Using This Chapter's Example File. A Quick Word About Using the Example File. Controlling the Body of Your Page. Setting the P Rule for Paragraphs. What's Next?


3. Setting Your Page's Other Styles.

Using the Example File. Setting the H1 Rule. Using a Group Selector to Set the Other Heading Characteristics. Setting the List Characteristics. Setting the Address Characteristics. What's Next?

II. UNDERSTANDING BASIC CONCEPTS


4. Using CSS with HTML.

Containment in HTML. Separating Appearance from Structure. CSS and Deprecated Elements and Attributes. A Word About Frames. The Three Flavors of HTML. What's Next?


5. Cascading, Grouping, and Inheritance.

How Cascading Works. How Grouping Works. How Inheritance Works. What's Next?

III. WORKING WITH COLORS, FONTS, AND TEXT.


6. Working with Colors and Backgrounds.

Using the Example File. Setting Foreground and Background Colors. Setting Background Images. Using the Background Shorthand Property. What's Next?


7. Working with Fonts.

Using the Example File. Setting Font Sizes. Setting Font Families. Setting Font Weights. Setting Font Styles and Variants. Using the Font Stretch Property. Using the Font Shorthand Property. Font Matching and the @font-face At-Rule. What's Next?


8. Working with Text and Links.

Using the Example File. Horizontally Aligning Text. Indenting the First Text Line. Controlling the Line Height. Controlling Letter and Word Spacing. Setting Underlining, Overlining, and Other Highlighting. Controlling Capitalization. Setting Text Shadows. Using the SPAN Element. Controlling the Appearance of Links. What's Next?

IV. WORKING WITH BLOCK ELEMENTS AND OBJECTS.


9. Formatting Block Elements.

Understanding the CSS Formatting Model. Using the Example File. Setting Margins. Setting Padding. Setting Borders. Using the DIV Element. Setting Padding, Borders, and Margins for Images and Other Objects. What's Next?


10. Aligning, Floating, and Positioning.

Horizontally Aligning Block Elements. Floating Elements. Creating an Online Picture Gallery. Positioning Elements. What's Next?

V. WORKING WITH LISTS AND TABLES.


11. Working with Lists.

Creating Bulleted Lists. Creating Link Lists. Creating Numbered Lists. Creating Glossary Lists. What's Next?


12. Working with Tables.

Using the Example HTML File. CSS and Tables. Controlling Table Width and Horizontal Alignment. Controlling Spacing, Padding, and Borders. Aligning Table Cell Contents. Working with Rows and Columns. Putting On the Finishing Touches. What's Next?

VI. GETTING DEEPER INTO USING STYLES.


13. Creating Menus and Interfaces.

Using the Example HTML File. Creating Interactive Menus. Creating an Interactive Sidebar Menu. Creating a Ribbon Menu. What's Next?


14. Creating Page Layouts and Site Designs.

Using the Example HTML Files. Keeping It Simple. Using a Fixed Sidebar Background. Creating Multi-Column Layouts. Creating a Three-Column Layout. Creating Site Designs. What's Next?

VII. VALIDATION AND COMPATIBILITY.


15. Validating Your Style Sheet.

Why Validate? Validation Options. The W3C's CSS and HTML Validators. Using the WDG's CSS and HTML Validators. Using Other HTML Validators and Page Checkers. What's Next?


16. Providing for Backward Compatibility.

Using the Example File. What About Non-Conforming Browsers? Using Gateway Pages and Browser Sniffers. Participating in the Web Standards Project. Using the LINK Element with a MEDIA Attribute. Finding Out What Works (and Doesn't Work) in Which. Browsers. The Comment Bug. A Practical Example. Understanding How DocType Switching Works. What's Next?

VIII. APPENDIXES.


Appendix A. CSS Quick Reference.

Containment and Application in HTML. CSS1 Properties (Alphabetical). A Look Ahead at CSS3.


Appendix B. Using CSS with Other Technologies.

Using JavaScript with CSS. Creating Dynamic Styles with Dynamic HTML. Using CSS with XML.


Appendix C. Overview of CSS Software Tools.

Style Sheet Editors. CSS-Supporting HTML Editors and Web Publishing. Text Editors. Windows. Macintosh. Other Platforms. Miscellaneous Utilities.


Index.

商品描述(中文翻譯)

《Cascading Style Sheets (CSS) by Example》讓您透過逐步學習的方式掌握CSS的基礎知識。它提供了在「真實世界」情境中使用CSS的示例。《Cascading Style Sheets (CSS) by Example》採用邏輯、線性的教學風格,最終讓您能夠使用CSS更好地控制網頁的外觀和樣式。

目錄
介紹
第一部分:創建您的第一個樣式表
1. 熟悉情況
2. 設置頁面的基本樣式
3. 設置頁面的其他樣式

第二部分:理解基本概念
4. 使用CSS與HTML
5. 層疊、分組和繼承

第三部分:使用顏色、字體和文本
6. 使用顏色和背景
7. 使用字體
8. 使用文本和連結

第四部分:使用區塊元素和對象
9. 格式化區塊元素
10. 對齊、浮動和定位

第五部分:使用列表和表格
11. 使用列表

以上是《Cascading Style Sheets (CSS) by Example》的內容概要。