Saturday, July 25, 2009

Font-family

* Using the font-family property allows the designer to specify which font they would PREFER to be used within the HTML document.
* If the end user does not have the specified font then the designer can also specify alternatives, creating a hierarchy of preferred fonts.
* If none of these fonts are available, we can also specify one of the five generic font styles: serif, sans-serif, monospace, cursive and fantasy.
* This does not guarantee that a certain font (or even the same font) will be used in each browser, it merely guarantees that a certain font style will be used.
* If you do include a generic font in your font family options, make sure it is the last option as no font afterwards will be used as a generic one should always be available.
* If none of the specified fonts are available and the designer has not included a generic font in the list, the user agent will render the text using the default generic sans-serif font.

No comments:

Post a Comment