How to do the fonts in a style sheet

Getting a little confused on this one. Which way would you do it, for the fonts please?

  .table tbody tr td {

  .table tbody tr td {
    font-family: "Trebuchet MS", Verdana, Helvetica, Arial, Sans-serif;

The fonts should be listed in order of preference, starting with your preferred font, then fall-backs to more common similar ones, ending with the more vague generic font type.
So your second example is good, assuming you want Trebuchet, falling back to other sans serif fonts.

1 Like

Thanks Sam, but is that precisely how you would do Trebuchet? with the quote marks?

Also, font-style or font-family as the prefix?

Yes, because it consists of more than one word.

font-family to declare the actual font (and fall-backs).

font-style for things like Italic.


Thank you very much, that has answered it.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.