The font-size value specifies the size of the font used to display the text. There are four types of values that can be used for font-size:
Value Example absolute-size { font-size: large; } relative-size { font-size: smaller; } length { font-size: 12pt; } percentage { font-size: 150%; } absolute-size values are words specifying definite font sizes. Possible values are: xx-small, x-small, small, medium, large, x-large and xx-large. Although the exact font size represented by, say, large, may vary from browser to browser, you can be sure that large will always be bigger than medium, for example.
relative-size values are relative to the inherited or default font size. Possible values are: larger and smaller. For example, if the inherited font size (from a parent style) is large, a relative-size of larger will set the font size to x-large.
length values are specified using the CSS length units such as em, px, cm and pt. For a full description of these, see the CSS Units reference.
percentage values are relative to the parent element's font size. For example, if the inherited font size is 12pt and a percentage value of 150% is specified, the resulting font size will be 18pt. See the CSS Units reference for details.
got from http://www.elated.com/articles/css-font-properties/
|