The Wayback Machine - https://web.archive.org/web/20090213015929/http://www.webreference.com:80/html/tutorial7/4.html


spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

I Shot the Serif

All Together Now


Developer News
Open Source ECM Growing Up
Android's Second Act, G2 Rumors Heat Up
Eclipse Rolls Out PHP Development Tools 2.0
Property:font
Accepted values:style variant weight size/line-height family
Initial value:as per individual properties
Applies to:All Elements
Inherited:Yes

The font property is used to set all the font properties, as well as the line-height property, which you will learn about in a while. Any of the property values may be omitted, so you can specify only the values of those properties you want to change. The weight, style and variant can be specified in any order, followed by the size, followed by a slash and the line height, followed by the family.

<UL>
<LI><SPAN STYLE="font: bold italic 12pt/14pt Garamond, serif">
      Bold Italic 12pt Garamond</SPAN>
<LI><SPAN STYLE="font: bold small-caps 16pt Arial, sans-serif">
      Bold Small-Caps 16pt Arial</SPAN>
<LI><SPAN STYLE="font: italic 10pt Times, serif">
      Italic 10pt Times</SPAN>
<LI><SPAN STYLE="font: 'Courier New', Courier, monospace">
      Courier New</SPAN>
<LI><SPAN STYLE="font: 20pt Tahoma, fantasy">
      20pt Tahoma</SPAN>
</UL>

I mentioned the line-height property a while back. This is one of the text properties, font properties closest relatives.

Front Page123456789

http://www.internet.com

Produced by Stephanos Piperoglou

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Copyright 2008 Jupitermedia Corporation All Rights Reserved.

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Introducing the ASP.NET Ajax Frameworks · Windows Forms: Applications · Building a Client-Side Ajax Cache
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Verizon's Versatile VoIP Hub · Show Us the Money: What the Stimulus Bill Can Do for Wi-Fi · The Acer Aspire One Enters the Next Generation


All Rights Reserved. Legal Notices.

URL: http://www.webreference.com/html/tutorial8/
Created: Oct 20, 1998
Revised: Nov 3, 1998

Morty Proxy This is a proxified and sanitized view of the page, visit original site.