copyright © CSSPG, lud February 28 1999


 for practical use of CSS

BASEFONT and FONT Examples

this document is located at...
<URI:http://css.nu/examples/font.html>

* Size in <BASEFONT> and<FONT> *

This shows use of the <FONT SIZE="1">font size 1.</FONT>

This shows use of the <FONT SIZE="2">font size 2.</FONT>

This shows use of the <FONT SIZE="3">font size 3.</FONT>

This shows use of the <FONT SIZE="4">font size 4.</FONT>

This shows use of the <FONT SIZE="5">font size 5.</FONT>

This shows use of the <FONT SIZE="6">font size 6.</FONT>

This shows use of the <FONT SIZE="7">font size 7.</FONT>

The CSS way: Absolute size

           <SPAN STYLE="font-size: xx-small;">

This demonstrates xx-small.

           <SPAN STYLE="font-size: x-small;">

This demonstrates x-small.

           <SPAN STYLE="font-size: small;">

This demonstrates small.

           <SPAN STYLE="font-size: medium;">

This demonstrates medium.

           <SPAN STYLE="font-size: large;">

This demonstrates large.

           <SPAN STYLE="font-size: x-large;">

This demonstrates x-large.

           <SPAN STYLE="font-size: xx-large;">

This demonstrates xx-large.

The CSS way: Relative size

           <SPAN STYLE="font-size: larger;"> and
    <SPAN STYLE="font-size: smaller;">

This demonstrates smaller.

The CSS way: Length

         <SPAN STYLE="font-size: 18pt;">

This demonstrates 18 point font size.

The CSS way: Percentage

         <SPAN STYLE="font-size: 110%;">

This demonstrates 110% font size.


CSS Pointers Navigation
Index · Browser Bugs · Books · Tools · DHTML · XSL & DSSSL
Main Site Navigation
Index · Articles · Examples · Experiments · FAQ · Markup · Styles · Who is?
CSSPG ~ Sue ~ Roland
Validate markup Check CSS