The font-size property (CSS Reference)
Introduction
The font-size property can be used to set the size of the
font. You can set the size either with the absolute size, relative size, length
or percentages.
Example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>font-family
Demonstration</title>
</head>
<hr/>
<span
style="font-size:xx-small">xx-small</span>
<span
style="font-size:x-small">x-small</span>
<span
style="font-size:small">small</span>
<span
style="font-size:medium">medium</span>
<span
style="font-size:large">large</span>
<span
style="font-size:x-large">x-large</span>
<span
style="font-size:xx-large">xx-large</span><hr/>
<span style="font-size:200%">200%</span>
<span
style="font-size:400%">400%</span>
<span
style="font-size:600%">600%</span>
<span
style="font-size:800%">800%</span></p><hr/>
<span
style="font-size:1000%">1000%</span></p><hr/>
<body>
</body>
</html>
Output

Values
|
Name:
|
Description:
|
|
absolute-size
|
You can use one of the following values to set the
absolute size:
xx-small
x-small
small
medium
large
x-large
xx-large
|
|
relative-size
|
You can use one of the following values to set the
relative-size:
larger
smaller
|
|
length
|
The following values can be also used to define the font
size:
cm (centimeter)
em (ems)
inch (inches)
mm (millimeters)
pc (picas)
px (pixels)
pt (points)
|
|
percentage
|
You can use percentages to decrease or increase the font
size.
|
|