XML technologies / ePUB / CSS essentials / Units and colors
(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)
Units
Unit | Abbreviation | Meaning |
|---|---|---|
Em height (relative) |
| Font size in the current font |
x-height (relative) |
| Height of lowercase x in the current font |
Percentage (relative) |
| Percentage value |
Pixels (absolute) |
| Pixel value, dependent on the output device |
Millimeters (absolute) |
|
|
Centimeters (absolute) |
|
|
Points (absolute) |
| Typographic measure (= 1/72 inch) |
Picas (absolute) |
| Typographic measure (= 12 pt) |
Inches (absolute) |
| Anglo-American unit (= 2.54 cm) |
Table: Units in CSS
Color values
Note: OPS permits ordinary CSS colors, although not every reader necessarily displays them.
VGA color names
Description | Value | Note |
|---|---|---|
Black |
|
|
White |
|
|
Light blue |
|
|
Blue |
|
|
Light purple |
|
|
Gray |
|
|
Green |
|
|
Light green |
|
|
Maroon |
|
|
Dark blue |
|
|
Olive |
|
|
Purple |
|
|
Red |
|
|
Light gray |
|
|
Turquoise |
|
|
Yellow |
|
|
Table: VGA color names
RGB color specifications
Value | Note |
|---|---|
| Six hexadecimal digits |
| Three hexadecimal digits |
| Integers from 0 to 255 |
| Floating-point values from 0.0% to 100.0% |
Table: RGB color specifications
Copyright © mitp 2011
You may print the online version for your private use.
Otherwise, this chapter from “E-Books mit ePUB” is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Verlagsgruppe Hüthig Jehle Rehm GmbH, Im Weiher 10, 69121 Heidelberg, kundenbetreuung(at)hjr-verlag.de