|
CSS1 properties
CSS1 properties
Style sheets influence the presentation of documents by assigning values to
style properties. This section lists the defined style properties, and their
corresponding list of possible values, of CSS1.
Notation for property values
In the text below, the allowed values for each property are listed with a
syntax like the following:
Value: N
| NW | NE Value: [ <length> | thick | thin
]{1,4} Value: [<family-name> , ]*
<family-name> Value: <url>? <color> [ /
<color> ]? Value: <url> || <color>
The words between "<" and ">" give a type of value. The most common
types are <length>, <percentage>, <url>, <number> and
<color>;
The more specialized types (e.g. <font-family> and
<border-style>) are described under the corresponding property.
Other words are keywords that must appear literally, without quotes. The
slash (/) and the comma (,) must also appear literally.
Several things juxtaposed mean that all of them must occur, in the given
order. A bar (|) separates alternatives: one of them must occur. A double bar (A
|| B) means that either A or B or both must occur, in any order. Brackets ([])
are for grouping. Juxtaposition is stronger than the double bar, and the double
bar is stronger than the bar. Thus "a b | c || d e" is equivalent to "[ a b ] |
[ c || [ d e ]]".
Every type, keyword, or bracketed group may be followed by one of the
following modifiers:
- An asterisk (*) indicates that the preceding type, word or group is repeated
zero or more times.
- A plus (+) indicates that the preceding type, word or group is repeated one
or more times.
- A question mark (?) indicates that the preceding type, word or group is
optional.
- A pair of numbers in curly braces ({A,B}) indicates that the preceding type,
word or group is repeated at least A and at most B
times
|
|