Font in CSS
- Started
- Last post
- 11 Responses
- lw-d
When you declare a font family in CSS, why is one particular font contained within quotes, ie:
font-family: Tahoma, "Lucida Grande", Verdana, sans-serif;
Is it saying "use this font over any other if the user has it?"
Thanks.
- weestu0
i would say because the font name has a space in it... the first font specified will be that one that is used as long as it is present on the client machine
- Nairn0
It's just to enclose any whitespace...
"Lucida_Grande"
vs. Verdana
- Nairn0
* gets coat.
- Jaline0
I didn't know that actually. Usually I just take out the quotes because they seem out of place.
- doesnotexist0
it's because of the space in the name of the font.
- bklyndroobeki0
http://www.webdesignerdepot.com/… this work?
- didn't want to start a new thread. guys do you know if 1 can run into licensing issues? say i wanted to use an Adobe font.bklyndroobeki
- Must have license.ETM
- ETM0
^
I was pretty sure this pre-dated CSS3. And yes, you must have a license for the font to be distributed for that use.Easier to use Typekit or Font Squirel etc. to avoid issues with license.
- Good info bud! Thank you.bklyndroobeki
- Agree w/ getting the license... my dev guy is trying to evade itbklyndroobeki
- ETM0
@lw-d
Is it saying "use this font over any other if the user has it?"
No the order you put them dictates that.
- < ETM this is an '06 thread. Sorry!bklyndroobeki
- Ha... so it is!ETM
- doesnotexist0
don't need a license if you use google fonts
- and some squirrel fonts right? but they are specified. Looking for a font close to DIN but not Open Sans.bklyndroobeki
- Condensed.bklyndroobeki
- ********0
BUMP!