Prev | Current Page 86 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

See Workarounds, Filters,
and Hacks (p. 391) for some examples of inconsistent browser behavior.
16 http://www.w3.org/TR/CSS21/syndata.html#parsing-errors
45 General Syntax and Nomenclature
Summary
A CSS style sheet contains statements??”rule sets and at-rules??”as well as comments
delimited by /* and */.
A rule set, or rule, consists of a selector (or group of selectors) and a declaration
block delimited by curly braces. A declaration block contains zero or more
semicolon-separated declarations, each comprising a property, a colon separator,
and a value.
Each property has its own syntax requirements, and some properties have shorthand
equivalents.
Different properties take values of different types. Length is one of the most common
types; it??™s made up of a number and a unit, but if the number is zero, the unit can
be omitted. Percentage values are relative to some aspect of the document or display,
and you need to look at the definition of each property to see how, if at all,
percentages apply.


Pages:
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98