| Note |
Not all value types are represented here, only the ones used in this book. There are additional types available for aural style sheets and counters. You can find information on these value types at www.w3.org/TR/REC-CSS2/syndata.html#values. |
|
Value Type |
Available Values |
Example(s) |
Notes |
|---|---|---|---|
|
Integers and Real Numbers |
0-9 |
line-height: 1.3; | |
|
Lengths: |
Height of M (em) |
0.95em |
Relative unit lengths are scaled according to the size of the parent element. |
|
Lengths: |
Inches (in) |
1in |
Absolute length units do not scale. |
|
Lengths: |
xx-small, x-small, small, smaller, medium, large, larger, x-large, xx-large |
font-size: large |
Keyword measurements do not necessarily scale. These keywords apply only to font-size. |
|
Percentages |
% |
width: 100% | |
|
URL + URN = |
URI url() |
url(/images/012/logo.gif) | |
|
Colors: |
color: orange; |
Most named colors are not part of the web-safe palette. |
|
|
Colors: |
#hexvalue |
color: #FFFFFF | |
|
Colors: |
#hexvalue |
color: #FFF |
Only available for paired values. All web-safe colors can be written in shorthand. |
|
Colors: |
#hexvalue |
color: (255, 255, 255) | |
|
Colors: |
% |
color: (80%, 30%, 20%) |
| |||||||||||||||||||