SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2004
    Location
    houston
    Posts
    177
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What does it mean when you have two font sizes specified 22px/27px?

    font:normal 22px/27px Arial, Helvetica, sans-serif;

    Im working on someone else's CSS and ran across this..... why is there two numbers specified and what does that do?

  2. #2
    SitePoint Wizard
    Join Date
    Dec 2005
    Posts
    1,726
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    font:normal 22px/27px Arial, Helvetica, sans-serif;
    The 27px is the line-height:27px; its the shorthand font declaration.

    font-weight:normal;
    font-size:22px;
    line-height:27px;
    font-family:Arial, Helvetica, sans-serif

    The above = font:normal 22px/27px Arial, Helvetica, sans-serif;
    The more you learn.... the more you learn there is more to learn.

  3. #3
    SitePoint Zealot
    Join Date
    Dec 2004
    Location
    houston
    Posts
    177
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IC perfect thanks

  4. #4
    SitePoint Zealot huit's Avatar
    Join Date
    Nov 2009
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sweet. I saw this shorthand for the first time yesterday and was wondering what it was also. Thanks for the info computerbarry! (and thanks plasma for asking the question ^^)


Bookmarks

Posting Permissions

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