Urgent: Font rendering differently in Firefox and IE

Discussion in 'CSS' started by aspirationz, Sep 21, 2008.

  1. #1
    Hi,

    The font on my blog pages is rendering differently in Firefox and IE.

    Please have a look at the following page:
    http://brains.intheorbit.com/2008/09/digital-age-and-handwriting.html

    The font comes up perfectly in Firefox but gets enlarged in Internet Explorer.

    Could someone please provide a solution to this anomaly ASAP.

    Here's the CSS code for the page content:

    .content p {
    font-size: 12px;
    line-height: 1.5em;
    margin: 0px 0px 10px 0px;
    padding: 0;
    }

    .content .more-link {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    }

    .content h1 {
    letter-spacing: -2px;
    font-size: 20px;
    color: #97aab1;
    }

    .content h2 {
    letter-spacing: -1px;
    font-size: 18px;
    color: #1394ef;
    }

    .content h3 {
    letter-spacing: -1px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    }

    .content h4 {
    font-size: 14px;
    font-weight: bold;
    }

    .content h5 {
    font-size: 12px;
    font-weight: bold;
    color: #999;
    }

    .content h6 {
    font-size: 11px;
    font-weight: bold;
    }
     
    aspirationz, Sep 21, 2008 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Link is broken.
    gary
     
    kk5st, Sep 21, 2008 IP
  3. PYT

    PYT Member

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #3
    Yup I'm getting the same error.
     
    PYT, Sep 21, 2008 IP
  4. mypsdtohtml

    mypsdtohtml Guest

    Messages:
    96
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You have to use font-family in your CSS.

    font-family: and then the family

    Hope it helps
     
    mypsdtohtml, Sep 22, 2008 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #5
    Your fonts should be coming up the same size because you are using px, unless you are testing in IE7 and have changed the zoom.

    One thing that might render different though is the line-heights, with FF making them significantly larger since you are declaring them in EM/%. Gecko rounds fractions up while at the same time keeping a floating point tally of all line-heights, making line-heights in gecko based browsers like FF a complete train-wreck.

    Of course, if any of what you are targeting is actually page content - like the body paragraphs - as evidenced by the .content class - they should NOT be made using px fonts since they do not obey the system metric. You should in fact be using %/em or at the very least pt for those areas so large font users aren't diving for the zoom control when they land on your page... especially with 12px being at the bottom end of usability minimums, anything below that effectively being illegible for large font/120dpi users.
     
    deathshadow, Sep 22, 2008 IP
  6. modulis

    modulis Guest

    Messages:
    46
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    brains.intheorbit.com returns a 404 error code. Did you delete this subdomain because the font on your site was not properly being displayed? :)
     
    modulis, Sep 22, 2008 IP
  7. buzzmaker

    buzzmaker Peon

    Messages:
    103
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Check if you have 'Large' text size in IE.

    In IE View > Text Size

    Set to medium and check.
     
    buzzmaker, Sep 25, 2008 IP