Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project










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-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information