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 4 of 4

Thread: Font question

  1. #1
    Regular Coder
    Join Date
    Apr 2005
    Posts
    315
    Thanks
    18
    Thanked 2 Times in 2 Posts

    Font question

    In looking at many of the CSS page out there, I often see fonts called out this way font : 11px/15px georgia, serif; How does that work, I mean the two sizes?

    Thanks,
    Michael

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    To my knowledge I didn't know you could do that, or see what the point of that would be...

    You can set multiple font faces so that if the first isn't available, another is used etc.

  • #3
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    Quote Originally Posted by michael180
    In looking at many of the CSS page out there, I often see fonts called out this way font : 11px/15px georgia, serif; How does that work, I mean the two sizes?
    This is based on the font attribute, which is the shorthand way of declaring a range of font related attributes in one go.

    11px/15px simply means that the font-size should be 11px and the line-height should be 15px.

    More info:
    http://www.w3schools.com/css/css_reference.asp#font
    http://www.sitepoint.com/article/int...-css-shorthand
    http://www.456bereastreet.com/archiv...nd_properties/

  • #4
    Regular Coder
    Join Date
    Apr 2005
    Posts
    315
    Thanks
    18
    Thanked 2 Times in 2 Posts
    Great, thank you Bill, and thanks for the links.

    Michael


  •  

    Posting Permissions

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