css font stck code example

Example 1: font stack css

/* Answer to: "font stack css" */

/*
  A font stack is a list of fonts in the CSS font-family
  declaration. The fonts are listed in order of preference that
  you would like them to appear in case of a problem, such as a
  font not loading.

  Check this complete collection of web safe CSS font stacks:
  https://www.cssfontstack.com/
*/

Example 2: font-family css

font-family: "Times New Roman", Georgia, serif;
/* If the browser does not support the first font (ie: Times New Roman),
it will then try the next font (ie: Georgia). The last font should always
be a "generic-family" font (ie: serif, sans-serif, etc..).
/* If font is more then one word, it must be put into quotes. */

Tags:

Css Example