Welcome to WebmasterWorld Guest from 54.159.250.110

Forum Moderators: not2easy

Message Too Old, No Replies

css fonts

   
5:08 pm on Apr 11, 2004 (gmt 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)



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)

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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