Família do tipo de letra

This translation is incomplete. Please help translate this article from English


'Família do tipo de letra' permite uma lista prioritária dos nomes da família do tipo de letra e/ou nomes da família genérica para serem especificados no elemento selecionado. Ao contrário das maior parte das propriedades  CSS, os valores são separados por uma vírgula para indicar que eles são alternativos.

  • Valor inicial: depende do agente usuário
  • Apĺica-se a: todos os elementos
  • Herdado: sim
  • Percentagens: n/a
  • Média: visual
  • Valor computado: como especificado


font-family: [[family-name|generic-family]
    [,family-name|generic-family]*] |inherit


The name of a font family. For example, "Times" and "Helvetica" are font families. Font family names containing whitespace should be quoted.
The following generic families are defined: serif, sans-serif, cursive, fantasy, monospace. Generic family names are keywords and should not be quoted.


View Live Examples

body { font-family: "Gill Sans Extrabold", Helvetica, sans-serif }

.receipt { font-family: Courier, "Lucida Console", monospace }


You should always specify a generic family name as the last value in the font-family property.

The font-family property specifies a list of fonts, from highest priority to lowest. Font selection does not simply stop at the first font named in the list that is on the user's system. Rather, font selection is done one character at a time, so that if an available font does not have a glyph that can display a character needed, the later available fonts are tried.

When a font is only available in some styles, variants, or sizes, those properties may also influence which font family is chosen.


== Compatibilidade com navegadores == TBD (This might best be done as a single centralized compatibility chart.)

Consulte também

font font-family, font-size, font-size-adjust, font-style, font-variant, font-weight, line-height


Interwiki Language Links