Welcome to WebmasterWorld Guest from 54.196.244.186

Forum Moderators: not2easy

Message Too Old, No Replies

css fonts

     
5:08 pm on Apr 11, 2004 (gmt 0)

New User

joined:Apr 9, 2004
posts:35
votes: 0


<style type="text/css">
#somediv .someclass {font-family: "Trebuchet MS", verdana;}

Does this mean the font trebuchet ms gets priority,
and when the end-user has not got the Trebuchet MS font, verdana gets displayed instead.

5:08 pm on Apr 11, 2004 (gmt 0)

New User

joined:Apr 9, 2004
posts:35
votes: 0


Better:

<style type="text/css">
#somediv .someclass {font-family: "Trebuchet MS", verdana;}
Does this mean the font trebuchet ms gets priority,
and when the end-user has not got the Trebuchet MS font, verdana gets displayed instead.
</style>

5:39 pm on Apr 11, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 29, 2004
posts:70
votes: 0


Yes, the first in the list has priority. But, it's a good idea to finish with a generic font-family in case a user doesn't have "trebuchet ms" or verdana:

{font-family: "Trebuchet MS", verdana, [b]sans-serif[/b];}

Adam

5:41 pm on Apr 11, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 8, 2003
posts:1429
votes: 0


Yes.

You should also add a generic font so if they don't have verdana either they still get something similar.

font-family: "Trebuchet MS", verdana, sans-serif;

See [w3.org...] for more info.

added: oops.. too slow