#### 7.5.3 Establishing base values and units of measurement

The numerical properties of a given text format can be expressed relative to a base value. You can establish base values for calculating relative sizes of properties with units of em, en, or percent. These base values must be specified with one of the following fixed units:

px | (pixels)
pt | (points)
pc | (picas)
cm | (centimeters)
mm | (millimeters)
in | (inches)

To specify a base size for text formats:

[BaseValues]
; BodyBaseHeight = size to use as basis for calculating relative
; values for font size, line height, and all values using units
; of em or ex. If not set, 10pt is used.
BodyBaseHeight=10pt

To specify a base size of the containing element (usually body) for margins, padding, and indentation:

[BaseValues]
; BodyBaseWidth = width to use as basis for calculating percent
; values for margins, padding, and text-indent. If not set, 6in
; is used.
BodyBaseWidth=6in

Percent values are tricky; you might want to avoid their use unless you are very familiar with advanced CSS.

Previous Topic: 7.5.2 Providing padding around the text body area for HTML

Next Topic: 7.5.4 Including formats for features not present in body content

Parent Topic: 7.5 Understanding text output formats

Sibling Topics:

7.5.1 Understanding where to define text output formats

7.5.2 Providing padding around the text body area for HTML

7.5.4 Including formats for features not present in body content

Table of Contents • Index