Book description
Web site design has grown up. Unlike the old days, when designers cobbled togetherchunky HTML, bandwidth-hogging graphics, and a prayer to make their sites look good,Cascading Style Sheets (CSS) now lets your inner designer come out and play. But CSSisn't just a tool to pretty up your site; it's a reliable method for handling allkinds of presentation--from fonts and colors to page layout. CSS: The MissingManual clearly explains this powerful design language and how you can use it tobuild sparklingly new Web sites or refurbish old sites that are ready for an upgrade.
Like their counterparts in print page-layout programs, style sheets allowdesigners to apply typographic styles, graphic enhancements, and precise layoutinstructions to elements on a Web page. Unfortunately, due to CSS's complexity andthe many challenges of building pages that work in all Web browsers, most Web authorstreat CSS as a kind of window-dressing to spruce up the appearance of their sites.Integrating CSS with a site's underlying HTML is hard work, and often frustratinglycomplicated. As a result many of the most powerful features of CSS are left untapped.With this book, beginners and Web-building veterans alike can learn how to navigatethe ins-and-outs of CSS and take complete control over their Web pages'appearance.
Author David McFarland (the bestselling author of O'Reilly's Dreamweaver: TheMissing Manual) combines crystal-clear explanations, real-world examples, a dashof humor, and dozens of step-by-step tutorials to show you ways to design sites withCSS that work consistently across browsers. You'll learn how to:
- Create HTML that's simpler, uses less code, is search-engine friendly, andworks well with CSS
- Style text by changing fonts, colors, font sizes, and adding borders
- Turn simple HTML links into complex and attractive navigation bars-completewith CSS-only rollover effects that add interactivity to your Web pages
- Style images to create effective photo galleries and special effects likeCSS-based drop shadows
- Make HTML forms look great without a lot of messy HTML
- Overcome the most hair-pulling browser bugs so your Web pages work consistentlyfrom browser to browser
- Create complex layouts using CSS, including multi-column designs that don'trequire using old techniques like HTML tables
- Style Web pages for printing
Unlike competing books, this Missing Manual doesn't assume that everyone in theworld only surfs the Web with Microsoft's Internet Explorer; our book providessupport for all major Web browsers and is one of the first books to thoroughlydocument the newly expanded CSS support in IE7, currently in beta release.
Want to learn how to turn humdrum Web sites into destinations that will captureviewers and keep them longer? Pick up CSS: The Missing Manual and learn thereal magic of this tool.
Publisher resources
Table of contents
-
CSS: The Missing Manual
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- A Note Regarding Supplemental Files
- The Missing Credits
- Introduction
-
I. CSS Basics
- 1. Rethinking HTML for CSS
- 2. Creating Styles and Style Sheets
- 3. Selector Basics: Identifying What to Style
- 4. Saving Time with Inheritance
- 5. Managing Multiple Styles: The Cascade
-
II. Applied CSS
-
6. Formatting Text
- 6.1. Formatting Text
- 6.2. Changing Font Size
- 6.3. Formatting Words and Letters
- 6.4. Formatting Entire Paragraphs
- 6.5. Styling Lists
- 6.6. Tutorial: Text Formatting in Action
- 7. Margins, Padding, and Borders
- 8. Adding Graphics to Web Pages
- 9. Sprucing Up Your Site's Navigation
- 10. Formatting Tables and Forms
-
6. Formatting Text
-
III. CSS Page Layout
- 11. Building Float-Based Layouts
- 12. Positioning Elements on a Web Page
-
IV. Advanced CSS
- 13. CSS for the Printed Page
- 14. Improving Your CSS Habits
-
V. Appendixes
-
A. CSS Property Reference
- A.1. CSS Values
-
A.2. Text Properties
- A.2.1. color (inherited)
- A.2.2. font (inherited)
- A.2.3. font-family (inherited)
- A.2.4. font-size (inherited)
- A.2.5. font-style (inherited)
- A.2.6. font-variant (inherited)
- A.2.7. font-weight (inherited)
- A.2.8. letter-spacing (inherited)
- A.2.9. line-height (inherited)
- A.2.10. text-align (inherited)
- A.2.11. text-decoration
- A.2.12. text-indent (inherited)
- A.2.13. text-transform (inherited)
- A.2.14. vertical-align
- A.2.15. white-space
- A.2.16. word-spacing (inherited)
- A.3. List Properties
-
A.4. Padding, Borders, and Margins
- A.4.1. border
- A.4.2. border-top, border-right, border-bottom, border-left
- A.4.3. border-color
- A.4.4. border-top-color, border-right-color, border-bottom-color, border-left-color
- A.4.5. border-style
- A.4.6. border-top-style, border-right-style, border-bottom-style, border-left-style
- A.4.7. border-width
- A.4.8. border-top-width, border-right-width, border-bottom-width, border-left-width
- A.4.9. outline
- A.4.10. outline-color
- A.4.11. outline-style
- A.4.12. outline-width
- A.4.13. padding
- A.4.14. padding-top
- A.4.15. padding-right
- A.4.16. padding-bottom
- A.4.17. padding-left
- A.4.18. margin
- A.4.19. margin-top
- A.4.20. margin-right
- A.4.21. margin-bottom
- A.4.22. margin-left
- A.5. Backgrounds
- A.6. Page Layout Properties
- A.7. Table Properties
- A.8. Miscellaneous Properties
- B. CSS in Dreamweaver 8
- C. CSS Resources
-
A. CSS Property Reference
- Index
- About the Author
- Colophon
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
Product information
- Title: CSS: The Missing Manual
- Author(s):
- Release date: August 2006
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596554521
You might also like
book
CSS: The Missing Manual, 2nd Edition
Cascading Style Sheets can turn humdrum websites into highly-functional, professional-looking destinations, but many designers merely treat …
book
CSS3: The Missing Manual, 3rd Edition
CSS3 lets you create professional-looking websites, but learning its finer points can be tricky—even for seasoned …
book
CSS: Tools & Skills
CSS has grown from a language for formatting documents into a robust language for designing web …
book
The Essential Guide to HTML5 and CSS3 Web Design
The Essential Guide to HTML5 and CSS3 Web Design has been fully revised from its critically …