homepage Welcome to WebmasterWorld Guest from 54.237.98.229
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
css fonts
webdesignerq



 
Msg#: 3400 posted 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.

 

webdesignerq



 
Msg#: 3400 posted 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>

aeve

10+ Year Member



 
Msg#: 3400 posted 5:39 pm on Apr 11, 2004 (gmt 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

grahamstewart

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3400 posted 5:41 pm on Apr 11, 2004 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved