Cascading Style Sheets 2.0 Programmer's Reference / Edition 1

Cascading Style Sheets 2.0 Programmer's Reference / Edition 1

by Eric Meyer
ISBN-10:
0072131780
ISBN-13:
9780072131789
Pub. Date:
03/20/2001
Publisher:
McGraw Hill LLC
ISBN-10:
0072131780
ISBN-13:
9780072131789
Pub. Date:
03/20/2001
Publisher:
McGraw Hill LLC
Cascading Style Sheets 2.0 Programmer's Reference / Edition 1

Cascading Style Sheets 2.0 Programmer's Reference / Edition 1

by Eric Meyer

Paperback

$30.0 Current price is , Original price is $30.0. You
$30.00 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Overview

Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, authenticity, or access to any online entitlements included with the product.




This handy resource gives you programming essentials at your fingertips, including all the new tags and features in CSS 2.0


The most authoritative quick reference available for CSS programmers. This handy resource gives you programming essentials at your fingertips, including all the new tags and features in CSS 2.0. You'll get concise information on designing and deploying complex style sheets as well as details on browser support.

Product Details

ISBN-13: 9780072131789
Publisher: McGraw Hill LLC
Publication date: 03/20/2001
Series: Programmer's Reference Series
Edition description: Subsequent
Pages: 368
Product dimensions: 5.40(w) x 8.30(h) x 0.89(d)

About the Author

Eric A. Meyer (Cleveland, OH) has been working with the Web since late 1993. He is currently the Internet Applications Manager for the OPAL Group, an information technology firm in Cleveland, Ohio. Eric is an Invited Expert and member of the W3C CSS&FP Working Group, and he is responsiblr for coordinating the creation of the W3C's CSS Test Suite. Eric continues to remain active on CSS newsgroups and edits Web Review's Style Sheets Reference

Read an Excerpt

Chapter 2: Values

Although authors tend to focus on the properties in CSS, nothing in CSS would work without the values that are assigned to those properties. After all, you can't describe the left border of an element without being able to say what it looks like, and that's what values do. In many cases, a property will use its own uniquely defined keywords (e.g., underline or thin). However, there are also many cases where generic types of values can be used. These generic value types are explained in this chapter.

The property reference chapters (4 through 6) use roughly the same value syntax as that described in section 1.3.2 of the CSS2 specification. In particular, the same symbolic conventions are used to indicate alternatives and optional keywords. The grouping symbols are as follows:

  • A vertical bar ( I ) is used to separate two or more alternatives when any one, but only one, of them may be used.
  • A double vertical bar (I I) is used to separate two or more alternatives when any of them may be used in any order. This operator is stronger than the single vertical bar.
  • A sequence of several words means that all of them must occur in the order shown. 2A sequence is stronger than the double vertical bar.
  • Square brackets ( [ 1) are used to group values together.
Thus, the following two expressions are equivalent: In addition to the grouping symbols, there are also modifier symbols. Any keyword, value type, or group can be modified using the following symbols.

An asterisk (*) indicates that the preceding value or group may occur zero or more times, with no defined upper limit.

A plus sign (+) indicates that the preceding value or group must occur one or more times, with no defined upper limit.

A question mark (?) indicates that the preceding value or group is optional. • A pair of two comma-separated numbers in curly braces x, Y )) indicates that the preceding value or group occurs a minimum of X times and a maximum of Y times. For example, to test { 2 , 5 ) means that the word t test must appear anywhere from two to five times.

Any symbols besides the ones defined here must appear literally. Two such examples are the comma (,) and slash (/) symbols.

The most important thing to keep in mind with values is that, when they use a unit, there is no space between the value and its unit. For example, a distance of four inches is written 4in. Any space between the value and its associated unit (as in 4 in) will cause browsers to ignore the declaration at best, and drastically misinterpret it at worst. This is one of the most common mistakes CSS authors make.

It is also the case that values are never quoted (except for string values and some font names). Thus, the keyword value for the color blue should not be written ^ blue ° . Instead, it should be blue. This is possibly the second most common mistake committed by CSS authors.

Color Values

Color values are used to specify a color (go figure). Typically, these are used to set a color either for the foreground of an element (i.e., its text) or else for the background of the element...

Table of Contents

Introductionxv
IReference
1Basic CSS Concepts3
Associating Styles with Documents3
Link Element3
Style Element4
Style Attribute5
@import Rule6
Rule Structure6
Resolving Style Conflicts7
Cascade Rules8
Specificity Calculation9
Importance10
Inheritance10
Shorthand Properties11
Visual Layout13
The Box Model13
The Inline Layout Model15
Float Rules18
Positioning Rules20
Relative Positioning20
Absolute Positioning21
Font Rules26
Font Family Matching26
Font Face Matching28
Font Weight Matching28
2Values31
Value Representations31
Basic Rules32
Value Reference32
Color Values32
Length Values34
Angle Values37
Time Values38
Frequency Values39
Strings39
Percentages40
URI Values41
3Selectors, Pseudo-Classes, Pseudo-Elements, and At-Rules43
Selectors43
Type Selector43
Descendant Selector44
Universal Selector44
Child Selector45
Adjacent-Sibling Selector45
Attribute Selectors46
Class Selectors48
ID selectors49
Pseudo-Classes49
:first-child50
:link51
:visited51
:hover52
:active53
:focus53
:lang(n)54
:left, :right, and :first55
Pseudo-Elements55
:first-letter55
:first-line56
:before57
:after58
At-Rules59
@import59
@media61
@charset61
@font-face62
@page63
4Visual Media Styles65
Reference65
background65
background-attachment67
background-color69
background-image70
background-position72
background-repeat75
border76
border-bottom78
border-bottom-color79
border-bottom-style80
border-bottom-width81
border-collapse82
border-color84
border-left85
border-left-color86
border-left-style87
border-left-width88
border-right89
border-right-color90
border-right-style91
border-right-width92
border-spacing93
border-style94
border-top97
border-top-color98
border-top-style99
border-top-width100
border-width101
bottom103
caption-side105
clear106
clip108
color109
content111
counter-increment113
counter-reset115
cursor116
direction119
display120
empty-cells124
float125
font127
font-family130
font-size132
font-size-adjust135
font-stretch137
font-style139
font-variant141
font-weight142
height145
left146
letter-spacing148
line-height149
list-style151
list-style-image153
list-style-position154
list-style-type155
margin158
margin-bottom160
margin-left161
margin-right162
margin-top164
marker-offset165
max-height166
max-width168
min-height169
min-width170
outline171
outline-color172
outline-style173
outline-width175
overflow176
padding178
padding-bottom179
padding-left180
padding-right182
padding-top183
position184
quotes186
right187
table-layout189
text-align191
text-decoration193
text-indent195
text-shadow196
text-transform198
top199
unicode-bidi201
vertical-align202
visibility205
white-space206
width207
word-spacing208
z-index210
5Paged Media Styles213
General Paged-Media Rules214
Page-Breaking Rules214
Content-Clipping Rules216
Reference216
@page216
first218
left219
right219
marks220
orphans221
page222
page-break-after224
page-break-before225
page-break-inside226
size227
widows229
6Aural Media Styles231
Reference231
azimuth231
cue234
cue-after235
cue-before236
elevation237
pause238
pause-after239
pause-before240
pitch241
pitch-range243
play-during244
richness246
speak247
speak-header248
speak-numeral249
speak-punctuation250
speech-rate251
stress253
voice-family254
volume255
IISummaries
7Broser Compatibility261
Notes279
1.1Containment in HTML279
1.1Containment in HTML279
1.3Inheritance279
1.4Class Selector279
1.5ID Selector279
1.6Contextual Selectors280
3.2Cascading Order280
5.2.2font-family280
5.2.4font-variant280
5.2.6font-size280
5.3.2background-color281
5.3.2background-color281
5.3.4background-repeat281
5.3.4background-repeat281
5.3.4background-repeat282
5.3.7background282
5.4.3text-decoration282
5.4.3text-decoration283
5.4.5text-transform283
5.4.6text-align283
5.4.8line-height283
5.4.8line-height283
5.5.01margin-top283
5.5.02margin-right284
5.5.03margin-bottom284
5.5.04margin-left284
5.5.05margin284
5.5.06padding-top284
5.5.07padding-right285
5.5.08padding-bottom285
5.5.09padding-left285
5.5.10padding285
5.5.11border-top-width285
5.5.12border-right-width285
5.5.13border-bottom-width285
5.5.14border-left-width286
5.5.15border-width286
5.5.16border-color286
5.5.17border-style286
5.5.18border-top286
5.5.19border-right286
5.5.20border-bottom287
5.5.21border-left287
5.5.22border287
5.5.23width287
5.5.25float287
5.5.26clear288
5.6.1display288
5.6.3list-style-type288
5.6.5list-style-position288
6.1Length Units289
6.3Color Units289
6.4URLs289
8CSS2 Quick Reference291
9Useful Resources313
Tools313
CSScheck (Web Design Group)313
CSS Validator (World Wide Web Conortium)313
Discussion Groups314
Stylesheets Newsgroup (Usenet)314
Style Discussion List (W3C)314
Style Discussion List (HTML Writers Guild)314
References315
CSS Activity Page (W3C)315
Style Sheets Reference Guide (Web Review)315
The House of Style (Western Civilisation)315
Agitprop316
CSS Pointers Group316
Index317
From the B&N Reads Blog

Customer Reviews