User Guide

331
ADOBE GOLIVE CS2
User Guide
Inheritancecan also impact thevalue of astyle.The valueofastylepropertycan be givenasapercentage that refers
to a property that precedes it. In the following example, the line-height value of 120% is determined by the font-size
property that precedes it in the stylesheet.
H1 { font-size: 24pt }
H1 { line-height: 120% }
Children of H1 will inherit the computed value of line-height and be set to 28.8 pt, but they will not inherit the
percentage.
When applying a style property to your pages, make sure you test it in all major browsers that support CSS. For more
information on browsers that support CSS, visit the World Wide Web Consortiums Cascading Style Sheets Home
Page at http://www.w3.org/Style/CSS/.
Relative and absolute units
Stylesheets can contain two types of length units: relative and absolute. Relative units specify a length relative to
another length property. Stylesheets that use relative units will scale more easily from one output medium to another
(for example, from a computer display to a laser printer). Relative units may also reduce the differences in font size
that occur when a page is viewed on different platforms.
In GoLive, you can use the following relative units:
pixel Is relative to the resolution of the computer display. This unit is best for reducing size display differences
between browsers on Windows and Mac OS.
em Represents the height of the style items font.
ex Represents the Height of the letter x.
% Percentage values are always relative to another value—for example, a length unit.
Keywords Specify font size relative to the parent element. For example, XX-small through X-large.
Absolute length units are only useful when the physical properties of the output medium are known.
In GoLive, you can use the following absolute length units:
Inch (in) is equivalent to 2.54 centimeters.
Centimeters (cm).
Millimeters (mm).
Point (pt) is equivalent to 1/72 of an inch.
Pica (pc) is equivalent to 12 points.
Some properties allow negative length units. However, negative length units may complicate the formatting and there
may be browser-specific limitations.