homepage Welcome to WebmasterWorld Guest from 54.211.201.65
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
css fonts
webdesignerq




msg:1212995
 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:1212996
 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




msg:1212997
 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




msg:1212998
 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