CSS: What is expected here.....

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Fredix
Forum Contributor
Posts: 101
Joined: Fri Jul 18, 2003 2:16 pm
Location: Wehr (Eifel) Germany
Contact:

CSS: What is expected here.....

Post by Fredix »

The CSS validator gives me a warning saying:
"font-family: You are encouraged to offer a generic family as a last alternative"

and this is my CSS:

"font-family : Tahoma, Arial, Helvetica;"

Does anyone know what I should add as the last element?

thx
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

You can add sans-serif or serif, for the web you probably want a sans-serif generic alternative (example: arial, verdana) instead of a serif one (example: times new roman).

So to avoid the warning, change:

Code: Select all

font-family : Tahoma, Arial, Helvetica;
to

Code: Select all

font-family : Tahoma, Arial, Helvetica, sans-serif;
and account for those people who don't have tahoma, arial, or helvetica installed on their computer.

Mac
Post Reply