CSS1 PROPERTIES
The Cascading Style Sheets Level 1 properties outlined here are grouped
into the appropriate categories. For each property the following
information is specified:
??
The property name and section number within the CSS1 specification
??
The set of possible values for the property
??
The default value (in bold, or specified separately)
??
The elements that the property applies to (all unless otherwise stated)
?? ¥ indicates a property that is not inherited
The notation used in this Quick Reference is summarised at the end.
FONT PROPERTIES
font-family
§ 5.2.2
Value:
[[<family-name> | <generic-family>],]*
[<family-name> | <generic-family>]
Default: UA specific
<generic-family>
serif | sans-serif | cursive | fantasy | monospace
font-style
§ 5.2.3
Value:
normal | italic | oblique
font-variant
§ 5.2.4
Value:
normal | small-caps
font-weight
§ 5.2.5
Value:
normal | bold | bolder | lighter |
100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
font-size
§ 5.2.6
Value:
<absolute-size> | <relative-size> | <length> | <percentage>
Percentage values: relative to parent element's font size
<absolute-size>
xx-small | x-small | small | medium | large | x-large | xx-large
<relative-size>
larger | smaller
font
§ 5.2.7
Value:
[ <font-style> || <font-variant> || <font-weight> ]?
<font-size> [ / <line-height> ]? <font-family>
Default: not defined for shorthand properties
Percentage values: allowed on <font-size> and <line-height>
COLOR AND BACKGROUND PROPERTIES
color
§ 5.3.1
Value:
<color>
Default: UA specific
background-color (¥)
§ 5.3.2
Value:
<color> | transparent
background-image (¥)
§ 5.3.3
Value:
<url> | none
background-repeat (¥)
§ 5.3.4
Value:
repeat | repeat-x | repeat-y | no-repeat
background-attachment (¥)
§ 5.3.5
Value:
scroll | fixed
background-position (¥)
§ 5.3.6
Value:
[<percentage> | <length>]{1,2} | [top | center | bottom] ||
[left | center | right]
Default: 0% 0%
Applies to: block-level and replaced e