Version: Level 1
Compability: IE4+ N4+
| Length | Abbrev. |
|---|---|
| centimeters | cm |
| ems | em |
| inches | in |
| millimeters | mm |
| picas | pc |
| pixels | px |
| points | pt |
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. This property is inherited.
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%; }<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