SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member decounts5's Avatar
    Join Date
    Jul 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool stupid question about The Art and Science of CSS book

    ok so I'm reading the Art and Science of CSS and I keep seeing this css code being used to style the body:

    font: 62.5%/1.75em

    I looked around and I found 62.5% is supposed to set the font in all browsers to 10px, but what does /1.75em after it do? I looked around but nothing seemed to come up. Thanks

    -Dave

  2. #2
    SitePoint Wizard drhowarddrfine's Avatar
    Join Date
    Aug 2005
    Posts
    3,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It sets the line-height.

  3. #3
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd do a bit of reading up on setting your body to 62.5% - plenty of arguments out there as to why it's not a good thing.

  4. #4
    SitePoint Member decounts5's Avatar
    Join Date
    Jul 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face

    I figured it was a simple answer. I'll definitely check out what they say for and against about presetting the text to size 10 by using 62.5%. Thanks for the help!


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
  •