Relative Length Units
em
Description: Relative length unit. font size relative to the text in the current object.
If the font size of the text in the current line is not artificially set, it will be relative to the browser's default font size.
Example:
div { font-size : 1.2em; }
ex
Description: Relative length unit. The height relative to the character x. This height is usually half the size of the font.
If the font size of the text in the line is not artificially set, it will be relative to the browser's default font size.
Example:
div { font-size : 1.2ex; }
px
Description: Relative length unit. Pixel (Pixel).
Pixels are relative to the display screen resolution. For example, the resolution used by WONDOWS users is generally 96 pixels per inch. The resolution used by MAC users is generally 72 pixels per inch.
Example:
div { font-size : 12px; }
--------------------------------------------------------------------------------------------------------------------------------
Absolute Length Units
pt
illustrate:
Absolute length unit. Point.
1in = 2.54cm = 25.4 mm = 72pt = 6pc
Example:
div { font-size : 9pt; }
pc
illustrate:
Absolute length unit. Pica. It is equivalent to the size of my country's new No. 4 lead type.
1in = 2.54cm = 25.4 mm = 72pt = 6pc
Example:
div { font-size : 0.75pc; }
in
illustrate:
Absolute length unit. Inch.
1in = 2.54cm = 25.4 mm = 72pt = 6pc
Example:
div { font-size : 0.13in; }
cm
illustrate:
Absolute length unit. Centimeter.
1in = 2.54cm = 25.4 mm = 72pt = 6pc
Example:
div { font-size : 0.33cm; }
mm
illustrate:
Absolute length unit. Millimeter (Millimeter).
1in = 2.54cm = 25.4 mm = 72pt = 6pc
Example:
div { font-size : 3.3mm; }
--------------------------------------------------------------------------------------------------------------------------------
Color Units Reference
#RRGGBB
parameter:
RR: