Font-family

From Htmlpedia
Jump to: navigation, search

CSS 1 property: font-family

The font-family property specifies a prioritized list of font family names and/or generic family names, similar to voice-family. To deal with the problem that a single font may not contain glyphs to display all the characters in a document, or that not all fonts are available on all systems, this property allows authors to specify a list of fonts, all of the same style and size, that are tried in sequence to see if they contain a glyph for a certain character. This list is called a font set.

Property Values

This property accepts the following values:

  • <family name>
  • sans-serif|serif|monospace|fantasy|cursive

Example

Good
<style type="text/css">
     element { font-family: value; }
</style>
...
<element attribute="foo">Contents</element>

Browser Support

If you have tested support for this property in any of the following browsers, please indicate its level of support using one of the following keywords:

  • Full
  • Partial
  • Buggy
  • None

If you indicate that support is "Partial" or "Buggy," please add further comments explaining what's missing or what doesn't work right.

IE 3 
Support is Unknown
IE 4 
Support is Unknown
IE 5 
Support is Unknown
IE 5.5 
Support is Unknown
IE 6 
Support is Unknown
IE 7 
Support is Unknown
NS 3 
Support is Unknown
NS 4 
Support is Unknown
NS 4.5 
Support is Unknown
NS 6 
Support is Unknown
NS 7 
Support is Unknown
NS 8 
Support is Unknown
Firefox 1 
Support is Unknown
Firefox 1.5 
Support is Unknown
Firefox 2 
Support is Unknown
Mozilla 
Support is Unknown
Opera 6 
Support is Unknown
Opera 7 
Support is Unknown
Opera 8 
Support is Unknown
Opera 9 
Support is Unknown

Tips and Tricks

If you know of any useful or uncommon tips or techniques using this property, please describe them here.

References