CSS Shortcut: Font . . . help!

Discussion in 'CSS' started by WebGyver, May 16, 2007.

  1. #1
    In the past, I've seen the following kind of CSS shortcuts for the font attributes in a handful of stylesheets:

    font: normal 12px/16px Verdana, Arial, Helvetica, sans-serif;

    or

    font: small/18px "Lucida Grande", "Trebuchet MS", "Bitstream Vera Sans", Verdana, Helvetica, sans-serif;


    Although I used to believe that I had a pretty good handle on all things CSS, for the life of me, I cannot figure out what the 12px/16px and the small/18px denotes.

    Can anyone point me in the right direction . . . please?

    Does anyone know where this is documented?


    Thanks much!
     
    WebGyver, May 16, 2007 IP
  2. Mr Blonde

    Mr Blonde Guest

    Messages:
    142
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    the font shorthand goes :
    font: "font-style, font-variant or font-weight" then "font-size / line-height" and then the "font-family";

    The W3C has a list of all CSS properties in all versions of CSS
     
    Mr Blonde, May 16, 2007 IP
  3. WebGyver

    WebGyver Guest

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you!

    That makes perfect sense . . . and yet, why didn't that occur to me right away?

    Thank you very much!
     
    WebGyver, May 16, 2007 IP
  4. Mr Blonde

    Mr Blonde Guest

    Messages:
    142
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    no prob :)
     
    Mr Blonde, May 16, 2007 IP