CSS Length Units Reference

MS Office DHTML, HTML & CSS

. Unless otherwise specified, the length units are supported as of Microsoft® Internet Explorer 3.0 or later. An asterisk (*) indicates the length unit is available as of Internet Explorer 4.0 or later.

Relative length units
em *The height of the element's font.
ex *The height of the letter "x".
pxPixels.
%Percentage.
Absolute length units
inInches (1 inch = 2.54 centimeters).
cmCentimeters.
mmMillimeters.
ptPoints (1 point = 1/72 inches).
pcPicas (1 pica = 12 points).

Measurements and positions in cascading style sheets (CSS) properties are indicated in length units. Internet Explorer supports two types of length units: relative and absolute.

A relative length unit specifies a length in relation to another length property. Relative length units scale better from one output device to another, such as from a monitor to a printer.

An absolute length unit specifies an absolute measurement, such as inches or centimeters. Absolute length units are useful when the physical properties of the output device are known.

See Also

CSS Attributes Reference

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.