Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 


Web Building >> Web design & build

 |  Print Thread
Dunx
regular


Reg'd: Tue
Posts: 142
Re: Setting a Font style?
      Fri Jul 06 2007 01:22 AM

Easiest way to do this on a site is to define the font in a style sheet. If you're not sure what a style sheet is, it's simply a text file saved with a .css extension.

See w3schools/css for more information and tutorials about style sheets.

Add this to your style sheet:

body {font-family: arial, helvetica, sans-serif;}

This line defines the font for the entire site. 3 fonts are listed in the example - arial, helvetica, and sans-serif.

Arial will be used if available, (this you should change to the font you'd prefer).
If it's not available then helvetica will be used, if that's not available, sans-serif is used, if that's not available then the default on the users computer is used.

You need also to put the following code in the header section of your html code:

<link rel="stylesheet" type="text/css" href="style.css">


Assuming that you've called the style sheet style.css

All the best - Duncan

--------------------
bolitho
Under One Roof

Post Extras Print Post   Remind Me!     Notify Moderator
Rate this thread

Jump to


Entire topic
Subject Posted by Posted on
* Setting a Font style? clum111 Fri Jun 29 2007 12:06 PM
. * * Re: Setting a Font style? Dunx   Fri Jul 06 2007 01:22 AM
. * * Re: Setting a Font style? clum111   Sun Jul 08 2007 01:54 PM
. * * Re: Setting a Font style? daverage   Fri Jun 29 2007 12:34 PM
. * * Re: Setting a Font style? Whizwrinkly   Fri Jun 29 2007 11:27 PM

Extra information
0 registered and 2 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Thread
Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Thread views: 0

Contact Us | Privacy statement Main website