The Wayback Machine - https://web.archive.org/web/20090226182006/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
Smartphone App Success Tied to Easy Discovery
Marvell Intros $99 'Plug Computer'
Apple: Safari Is Faster and Drives Standards

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.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info
Copyright 2009 WebMediaBrands Inc. All Rights Reserved.

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

webref The latest from WebReference.com Browse >
User Personalization with PHP: Beginning the Application · Django for the Impatient: The Finishing Touches · Creating Custom Error Pages on Apache Servers
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Maingear Introduces the GeForce 3D Vision-powered Prelude 2 · Web Service Matches Printing Needs with Local Providers · Book Review: eBay Rescue Profit Maker


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.