Reply to .CSS style sheets, font question

Your name:

Reply:


Posted by Algomeysa2 on 01/31/06 00:31

It's been awhile since I've used .CSS files.

I'm having a little trouble getting my groove back.

I know that if you specify the font in the .CSS file (example: font-family:
Arial), it doesn't seem to be case-sensitive, for example, I could put
either "Arial" or "arial."

But other names, I'm a little fuzzier on. My reference book mentions the
"trebuchet" font, but in my windows fonts directory my font is named
"trebuchet MS", and if I just use "trebuchet" the font won't display, it
just uses a default font.

Ok, so that would seem simple enough: use the exact name of the font.

But... my book also mentions using, for example, "Times" or "Courier", and
I don't have those fonts in my windows control panel, fonts directory: I
have "Times New Roman" and "Courier New."

So it seems to be able to extrapolate to use the Times New Roman one when
it's told to use Times, or the Courier New one when it's told to use
Courier.

Yet it can't use Trebuchet MS when told to use Trebuchet.

How can I tell which fonts are safe to use?

I know I can be safer by writing, for example:
font-family: Comic Sans MS, Arial, sans-serif;

by which, I'm assuming, the user's browser will use Comic Sans MS if it's
got it, then, if not, it'll use Arial, which is so common that the user will
almost certainly have it, and if that doesn't work, it just goes and grabs
some other sans-serif font, if I understand correctly.

The book I'm using gives examples like using Arial, Helvetica, Verdana,
Georgia fonts. I've got all those except Helvetica, but I'm just wondering
how universal these fonts are in people's browsers. I mean, obviously,
you don't want to use some wacky Klingon TrueType font that only a handful
of people would have, but what can I assume almost everybody has?

So...to sum up....
1) what fonts are safest to use?
2) how is it that my browser (IE) seems to be able to generalize that
"Times" = "Times New Roman", and "Courier" = "Courier New", but not
"Trebuchet" = "Trebuchet MS" ?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация