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


spacer

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

I Shot the Serif

All Together Now


Developer News
Cisco Lawsuit: A Test for the GPL?
Shifts for Enterprise Linux, Green Networks in '09
Gifts for All in Linux 2.6.28
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 >
Overview of Popular JavaScript Frameworks - ASP.NET AJAX · An Introduction to 3D · Email Marketing Terms to Know
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Configuring Anonymous Dialog Security in SQL Server 2005 Express Service Broker Conversation · OpenVPN: Revoking Access and Expanding Management Options · Connecticut Town Lays Groundwork for Merged School, Municipal VoIP Network


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.