Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 07-14-2008, 05:46 PM Multiple fonts?
rareillusions's Avatar
Average Talker

Posts: 19
Trades: 0
I'm new to CSS and I've seen that some have two or more font choices seperated by commas? Why is that and what does it do?
rareillusions is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-14-2008, 06:01 PM Re: Multiple fonts?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
I guess you are talking about the "font-family" declaration, which is the only one that takes multiple fonts as arguments.

The reason we need font-family is that not all operating systems or browsers support all fonts, so we make a list of various fonts to fall back on if the first in the list are not supported.

So, a declaration like this:
CSS
Code:
font-family: "Courier New", Courier, monospace;
means that the first font to be considered will be "Courier New", followed by "Courier", then defaulting to "monospace". Note that any time a font is composed of two or more words, it must have quotes around it.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-14-2008, 07:45 PM Re: Multiple fonts?
seocd's Avatar
Super Talker

Posts: 128
Name: Ryan
Trades: 0
you can also use this for special fonts. if you like a special font that you downloaded you can set it as the first font in the font-family declaration followed by a few standard fonts (arial, courier, times new roman, etc.). This way your website will be displayed as you designed it for people with that same font downloaded but will be displayed in more standardized fonts for those that don't have it.

Keep in mind, some fonts are significantly smaller or larger with the same font-size so if you do have a custom font, make sure it is close to the same size ratio of the standard fonts you chose so your site does not completely change between two fonts.
__________________
SEO Compatible
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
seocd is offline
Reply With Quote
View Public Profile
 
Old 07-14-2008, 09:35 PM Re: Multiple fonts?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Using 'special' fonts just isn't a good idea since only a very small fraction of a site's audience are likely to have that 'special' font installed.

If you want to use a 'special' font that can be viewed by EVERYONE, then a replacement method called sIFR works extremely well.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Multiple fonts?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13429 seconds with 12 queries