font
font-family
font-size-adjust
font-stretch
font-style
font-variant
font-weight
PROPERTY: font-size
font-size
:
absolute-size
|
relative-size
|
length
|
percentage
Compatibility:
IE4+ N4+
Version:
Level 1
Inherited:
Yes
The
font-size
property allows you to change the size of the font (i.e., characters in a text) by selecting from four different categories of values. The amount of change in size is a relative, not fixed, quantity that is determined by your individual computer and/or browser.
absolute-size
There are seven steps in the
absolute-size
values to choose from:
xx-small
x-small
small
medium
large
x-large
xx-large
The amount of change caused by each step will be determined by the individual computer/browser.
relative-size
There are two
relative-size
values to choose from:
larger
smaller
The amount of change will be determined by the individual computer/browser.
length
The
length
value can be in any of the following seven units. Use the abbreviation.
Length
Abbrev.
centimeters
cm
ems
em
inches
in
millimeters
mm
picas
pc
pixels
px
points
pt
percentage
The
percentage
value is the percent amount you wish to increase or decrease the font size. Values less than 100% reduce the size of the font. 100% gives no change. Values greater than 100% increase the font size.
Code:
p { font-size: x-large; }
p { font-size: smaller; }
p { font-size: 18pt; }
p { font-size: 3em; }
p { font-size: 75%; }
p { font-size: 150%; }
or
<span style="font-size: xx-small;">A </span>
<span style="font-size: x-small;">A </span>
<span style="font-size: small;">A </span>
<span style="font-size: medium;">A </span>
<span style="font-size: large;">A </span>
<span style="font-size: x-large;">A </span>
<span style="font-size: xx-large;">A </span>
A
A
A
A
A
A
A
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information