Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: font-family

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    82
    Thanks
    15
    Thanked 3 Times in 3 Posts

    font-family

    what does the 'Helvetica Neue' or "Blah blah" mean.

    ex:

    font-family: 'helvetica neue', Arial, Helvetica, sans-serif;

    why do they use ' ' and " "

  • #2
    Regular Coder
    Join Date
    May 2011
    Posts
    357
    Thanks
    23
    Thanked 1 Time in 1 Post
    try it

  • #3
    Registered User
    Join Date
    Feb 2011
    Posts
    82
    Thanks
    15
    Thanked 3 Times in 3 Posts
    yeah no duh it does absolutely nothing. im wondering if its for browser support

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,485
    Thanks
    6
    Thanked 981 Times in 954 Posts
    The quotes are for multi-word font names, i. e. names with spaces in them, to denote that it’s one string. Don’t know if it hurts to leave the quotes but it’s better practice, I guess, since that’s how it’s done in other programming languages, too.

  • #5
    New Coder
    Join Date
    May 2010
    Posts
    79
    Thanks
    15
    Thanked 2 Times in 2 Posts
    Oooh, I've always thought that quotes tells the browser to use this as its main font and if it doesn't exist, use the alternatives.

  • #6
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by kenshn111 View Post
    Oooh, I've always thought that quotes tells the browser to use this as its main font and if it doesn't exist, use the alternatives.
    No; precedence comes by ordinal position in the list.

  • #7
    Regular Coder
    Join Date
    Dec 2010
    Posts
    134
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Quote Originally Posted by Apostropartheid View Post
    No; precedence comes by ordinal position in the list.
    Oh, learn something new everyday.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •