
The Complete Idiot's Style Sheets Reference
| Index
| Current Category: Fonts |
| Previous Style: font-family
| Next Style: font-size-adjust
|
font-size
Controls the size of text.
Support:
-
Notes:
Possible Values:
- [absolute-size]
A predefined font size.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
3.0 and later |
4.0 and later |
-
Notes:
-
Possible values: xx-small, x-small, small, medium, large, x-large, xx-large.
- larger
Text is formatted in a larger size relative to the current font size.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
4.0 and later |
4.0 and later |
- [length]
The size of the text, in points.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
3.0 and later |
4.0 and later |
- [percentage]
The size of the text as a percentage of the current font size.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
3.0 and later |
4.0 and later |
- smaller
Text is formatted in a smaller size relative to the current font size.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
4.0 and later |
4.0 and later |
Example:
Our t-shirts are available in sizes
<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>, and
<SPAN STYLE="font-size: xx-large">xx-large.</SPAN>
<DIV STYLE="font-size: small">
You can also special order t-shirts in
<SPAN STYLE="font-size: smaller">smaller</SPAN> or
<SPAN STYLE="font-size: larger">larger</SPAN> sizes.
</DIV>
Our biggest shirt is <SPAN STYLE="font-size: 24">Size 24</SPAN>.
How It Looks:
- Our t-shirts are available in sizes
xx-small,
x-small,
small,
medium,
large,
x-large, and
xx-large.
You can also special order t-shirts in
smaller or
larger sizes.
Our biggest shirt is Size 24.
| Index
| Current Category: Fonts |
| Previous Style: font-family
| Next Style: font-size-adjust
|
|