Betűtípus értékek: font-family CSS jellemző tulajdonságai

Font-family

betűtípus

Declares the name of the font to be used. Previously set in HTML via the face attribute in atag.
Lehetséges értékek:
Betűtípus neve
"Valid font family names or generic family names, i.e. Arial, Verdana, sans-serif, "Times New Roman", Times, serif, etc.

Font family names can be separated by a comma in the same declaration to allow additional and/or generic family names to be used if the prefereed font is unable to be displayed.

"
[[ <family-name> | <generic-family> ] [, <family-name>| <generic-family>]* ] | inherit

Font-family minták, példák:

div { font-family:Arial; }

div { font-family:Arial, Helvetica, sans-serif; }


font-family: Courier;
Alapértelmezett érték: a "user agent" értékétol függ
Öröklődő tulajdonság: igen
Media besorolás: visual
Csoport besorolás: betűtípus értékek

Kompatibilitás: CSS 1, CSS 2, CSS 2.1, CSS 3,

További betűtípus értékek:

font-size font-size-adjust font-stretch font-style font-variant font-weight font

Font-family CSS tulajdonságok, referencia

Webdesign