CSS Cookbook

CSS Cookbook

by Christopher Schmitt
CSS Cookbook

CSS Cookbook

by Christopher Schmitt

eBook

$26.99  $35.99 Save 25% Current price is $26.99, Original price is $35.99. You Save 25%.

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

As the industry standard method for enriching the presentation of HTML-based web pages, Cascading Style Sheets (CSS) allow you to give web pages more structure and a more sophisticated look. But first, you have to get past CSS theory and resolve real-world problems.

For those all-too-common dilemmas that crop up with each project, CSS Cookbook provides hundreds of practical examples with CSS code recipes that you can use immediately to format your web pages. Arranged in a quick-lookup format for easy reference, the second edition has been updated to explain the unique behavior of the latest browsers: Microsoft's IE 7 and Mozilla's Firefox 1.5. Also, the book has been expanded to cover the interaction of CSS and images and now includes more recipes for beginning CSS users. The explanation that accompanies each recipe enables you to customize the formatting for your specific needs. With topics that range from basic web typography and page layout to techniques for formatting lists, forms, and tables, this book is a must-have companion, regardless of your experience with Cascading Style Sheets.


Product Details

ISBN-13: 9780596554682
Publisher: O'Reilly Media, Incorporated
Publication date: 10/17/2006
Series: Cookbooks (O'Reilly)
Sold by: Barnes & Noble
Format: eBook
Pages: 544
File size: 22 MB
Note: This product may take a few minutes to download.

About the Author

Christopher Schmitt has been working with the Web since 1993. He is the author of several books on web design and digital imaging, including earlier editions of CSS Cookbook, and is a contributing writer to many web development magazines.

Table of Contents

Forewordix
Prefacexi
1.Web Typography1
1.1Specifying Fonts and Inheritance2
1.2Specifying Font Measurements and Sizes5
1.3Enforcing Font Sizes9
1.4Setting a Simple Initial Cap10
1.5Setting a Larger, Centered Initial Cap11
1.6Setting an Initial Cap with Decoration (Imagery)13
1.7Creating a Heading with Stylized Text15
1.8Creating a Heading with Stylized Text and Borders17
1.9Stylizing a Heading with Text and an Image19
1.10Creating a Pull Quote with HTML Text21
1.11Creating a Pull Quote with Borders22
1.12Creating a Pull Quote with Images24
1.13Setting the Indent in the First Line of a Paragraph27
1.14Setting the Indent of Entire Paragraphs28
1.15Setting Text to Be Justified31
1.16Styling the First Line of a Paragraph32
1.17Styling the First Line of a Paragraph with an Image33
1.18Creating a Highlighted Text Effect35
1.19Changing Line Spacing36
2.Page Elements38
2.1Eliminating Page Margins38
2.2Coloring the Scrollbar40
2.3Centering Elements on a Web Page43
2.4Setting a Background Image48
2.5Creating a Line of Background Images49
2.6Placing a Background Image50
2.7Fixing the Background Image53
2.8Placing a Page Border56
2.9Customizing a Horizontal Rule58
2.10Example Design: Setting Up a Dynamic Splash Page62
3.Links and Navigation67
3.1Removing Underlines from Links67
3.2Setting Text to Blink69
3.3Setting Style Decorations Other Than Underlines70
3.4Changing Cursors71
3.5Creating Rollovers Without JavaScript73
3.6Creating Nongraphical Menus with Rollovers74
3.7Creating Collapsible Menus78
3.8Building Horizontal Menus80
3.9Creating Breadcrumb Navigation85
3.10Creating Image-Based Rollovers88
3.11Designing a Dynamic Visual Menu92
3.12Creating Contextual Menus95
4.Lists99
4.1Changing the Format of a List100
4.2Writing Cross-Browser Indentation in Lists101
4.3Creating Custom Text Markers for Lists102
4.4Creating Custom Image Markers for Lists104
4.5Creating Inline Lists106
4.6Making Hanging Indents in a List107
4.7Moving the Marker Inside the List108
5.Forms111
5.1Setting Styles for Input Elements111
5.2Setting Styles for textarea Elements115
5.3Setting Styles for Select and Option Elements116
5.4Creating Form Buttons119
5.5Setting Up a Submit-Once-Only Button122
5.6Designing a Web Form Without Tables123
5.7Sample Design: A Login Form125
5.8Sample Design: A Registration Form129
6.Tables139
6.1Setting the Cell Spacing139
6.2Setting the Borders and Cell Padding141
6.3Setting the Styles Within Table Cells143
6.4Removing Gaps from Table Cells with Images144
6.5Setting Styles for Table Header Elements146
6.6Sample Design: An Elegant Calendar148
7.Page Layouts158
7.1Developing Hybrid Layouts Using HTML Tables and CSS159
7.2Building a One-Column Layout164
7.3Building a Two-Column Layout165
7.4Building a Two-Column Layout with Fixed-Width Columns170
7.5Creating a Flexible Multicolumn Layout with Floats173
7.6Creating a Fixed-Width Multicolumn Layout with Floats176
7.7Creating a Flexible Multicolumn Layout with Positioning179
7.8Creating a Fixed-Width Multicolumn Layout with Positioning182
7.9Designing an Asymmetric Layout184
8.Print188
8.1Creating a Printer-Friendly Page189
8.2Making a Web Form Print-Ready191
8.3Inserting URLs After Links194
8.4Sample Design: A Printer-Friendly Page with CSS195
9.Hacks and Workarounds204
9.1Hiding Certain Styles from Netscape Navigator 4.x205
9.2Delivering Alternative Values to Internet Explorer 5.x for Windows207
9.3Removing Web Page Flicker in Internet Explorer 5.x for Windows210
9.4Keeping Background Images Stationary in Internet Explorer 6 for Windows211
9.5Keeping CSS Rules from Internet Explorer 5 for Macintosh212
10.Designing with CSS213
10.1Enlarging Text Excessively213
10.2Creating Unexpected Incongruity215
10.3Combining Unlike Elements to Create Contrast218
10.4Leading the Eye with Contrast219
10.5Building a Panoramic Image Presentation222
10.6Combining Different Image Formats225
10.7Making Word Balloons230
10.8Emphasizing a Quotation233
10.9Placing a Drop Shadow Behind an Image236
AppendixResources239
Index245
From the B&N Reads Blog

Customer Reviews