CSS Font-family Property

Posted The: 24/03/2008 At: 0:58

Last Edited: 30/04/2009 At: 20:55

The font-family Sets the font family.

Possible Values

There are countless of fonts you can use, however they would need to be installed on your visitors system, before they would be able to view them. The generic font families are:

  • serif
  • sans-serif
  • cursive
  • fantasy
  • monospace

The font-family is a list of fonts, separated by comma; browsers will use the first font which is installed on the system. In addition, names containing whitespace should be quoted; and Font names should also be capitalized. I.E. "Times New Roman".

body {
  font-family: "Comic Sans MS", Arial, "Times New Roman", serif, sans-serif;
}

Inherited? - YES!

Comments: [0]

© Brugbart Webdesign