Previous Topic

Size and Color Values

There are about a dozen MathML properties whose values can be expressed in a wide variety of formats. In the property dialogs, these values are set by text fields where you can type any valid value. In many cases, the values are either sizes or colors. The format for these two kinds of values are explained below.

Size Values

A number of MathML properties involve sizes, such as "font size". In the Editor, sizes can be specified in two formats:

Format

Example

number with unit

1 cm, .8 em

percentage

120% (of normal size)


The list of valid MathML units is shown below:

Unit identifier

Unit description

em

em (font-relative unit traditionally used for horizontal lengths -- width of an 'M')

ex

ex (font-relative unit traditionally used for vertical lengths -- height of an 'x')

px

pixels, or pixel size of the current display

in

inches (1 inch = 2.54 centimeters)

cm

centimeters

mm

millimeters

pt

points (1 point = 1/72 inch)

pc

picas (1 pica = 12 points)

Color Values

MathML color properties accept normal CSS color values. The following table summarizes the valid formats for specifying color values:

Format

Example

3-digit hexadecimal RGB values

#00f (blue), #000 (black)

6-digit hexadecimal RRGGBB values

#00ff00 (green), #999999 (medium gray)

color keyword

'aqua', 'black', 'blue', 'fuchsia', 'gray', 'green', 'lime', 'maroon', 'navy', 'olive', 'purple', 'red', 'silver', 'teal', 'white', or 'yellow'

Previous Topic


[Design Science Home]
Copyright © 1996-2013 Design Science, Inc. All rights reserved.