Author Topic: HOW TO: set default font for web page ?  (Read 360 times)

0 Members and 1 Guest are viewing this topic.

Offline jasoncTopic starter

  • Devotee
  • Posts: 817
    • View Profile
HOW TO: set default font for web page ?
« on: March 10, 2010, 03:07:14 AM »
I wish to set a default font-family for all text in a page without having to add CSS id or class to all of the text.

How is this done?

I have tried the following but it does not work.

Code: [Select]
font { font-family: Tahoma,georgia,garamond,serif; }

Offline jasoncTopic starter

  • Devotee
  • Posts: 817
    • View Profile
Re: HOW TO: set default font for web page ?
« Reply #1 on: March 10, 2010, 03:28:44 AM »
<body style="font-family: Tahoma,georgia,garamond,serif;">

Offline XeNoMoRpH1030

  • Enthusiast
  • Posts: 71
    • View Profile
    • Blue Line Attack
Re: HOW TO: set default font for web page ?
« Reply #2 on: March 10, 2010, 01:05:47 PM »
That, or you can do it from CSS

Code: (css) [Select]
body { font-family: Tahoma,georgia,garamond,serif; }