Font Size is Different on Firefox vs. IE6

Discussion in 'CSS' started by steveb, Oct 4, 2007.

  1. #1
    Anyone know why some font sizes would show up bigger on Firefox than on IE6?

    I'm thinking it has something to do with the CSS setup, but not sure what.

    Any advice is appreciated.
     
    steveb, Oct 4, 2007 IP
  2. George Smith

    George Smith Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think that even if CSS would have been used, the reason behind your problem is the different behaviors of different browsers more than anything else.
     
    George Smith, Oct 4, 2007 IP
  3. Arnold9000

    Arnold9000 Peon

    Messages:
    241
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    They should not be different if you use a px or pt size. However, sometimes a user's browser settings will override your specs. You're supposed to let the user do what they want and leave your design flexible, but sometimes there's good reason to not do that and fully control what the user sees. If so, then add this at the end of your font size spec. !important. This is supposed to tell it to override the user's preferences. That's all i can think of without any more info or a url. Hope it helps.

    ex. font-size: 12px !important;
     
    Arnold9000, Oct 5, 2007 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    are you using %/em font sizes in your document on a 'large font/120dpi' setup? Firefux ignores the system metric for it's default sizes, Opera and IE pay attention to it.

    Also, are you EXPLICITLY declaring your line-heights? Firefux fux that one up pretty hard seeming to determine the default line-height almost at random - I've seen results anywhere from 1.1 to 1.3 by default, possibly from a rounding error/difference from everybody else.

    http://battletech.hopto.org/for_others/font_test.html

    That little page shows just SOME of the font size headaches you have to deal with in each metric type. As you can see there's an odd man out, and it's NOT IE.
     
    deathshadow, Oct 5, 2007 IP
  5. Arnold9000

    Arnold9000 Peon

    Messages:
    241
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Firefux ((LOL)) I'll add that to the oldtimers list of Nutscrape and Internet Exploder.
     
    Arnold9000, Oct 5, 2007 IP