Re: Prefomated Text

by Andrew McFarland <aamcf(at)aamcf.co.uk>

 Date:  Tue, 09 Jul 2002 22:34:57 +0100
 To:  Matthew Ohlman <matthew(at)ohlman.com>
 Cc:  HWG-basics(at)hwg.org
 References:  ntlworld ohlman
  todo: View Thread, Original
At 15:52 08/07/02 -0500, Matthew Ohlman wrote:
>Line : 39 font-family: You are encouraged to offer a generic family as a 
>last alternative
>
>what does this mean? I have the code letter for letter as below (except 
>the size), and I can't figure out what is wrong!

It means I had a typo in my e-mail...
>         font-family: arial, san-serif;

Should be

         font-family: Arial, sans-serif;

Capital A and an additional s on the end of san...

In CSS when you specify a list of fonts you can use one of 5 generic types 
for the last option. They are:

serif - a typeface with serifs, like Times New Roman
sans-serif - a typeface without serifs, like Arial
monospace - a `typewriter' type typeface where all the letters have the 
same width, like Courier New
cursive - a typeface that looks like handwriting
fantasy - basically everything that isn't one of the above.

This means that you can at least specify the general style of the font even 
if non of your named fonts are present. 99.99% of the time you will want to 
use serif or sans-serif as the generic font type.

See http://www.w3.org/TR/REC-CSS2/fonts.html#generic-font-families

Andrew

--
http://aamcf.co.uk/

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA