Click here to Skip to main content
13,042,819 members (77,108 online)
Rate this:
Please Sign up or sign in to vote.
See more:
body{font-size: 11px !important;font-size: 12px;
   font-family: Arial;

Hi all!In IE9,the text seem to be more smaller than they in IE8 or FF or Chrome,it is so strange,is there anybody know how to fix it or why their size display in IE9 diffrently?
Posted 18-Apr-13 4:26am
Updated 18-Apr-13 4:29am
ryanb31 18-Apr-13 10:31am
Why is it strange? You are specifying 2 different font-sizes. Apparently IE8 renders it one way and IE9 renders it differently.
silverDrops 18-Apr-13 10:36am
the !improtant is css hack for IE6,except ie6,all the browser will take the css attribut of font-size:11px;
ryanb31 18-Apr-13 10:42am
I know. I'm just saying with every new version of IE things render differently. Have you used the IE dev tools to try and figure out exactly what is happening?
silverDrops 18-Apr-13 10:48am
I have used it!But I still can't get it.
ryanb31 18-Apr-13 10:49am
It may actually be a different font. If you use the dev tools there is a trace styles tab so you can see where formatting is coming from.
silverDrops 18-Apr-13 10:54am
But I haven't use other font in any elements.
Sergey Alexandrovich Kryukov 18-Apr-13 10:31am
Hm. Somewhat contradicting declaration can get you contradicting results...
The discrepancy between IE8 and IE9 is sorrowful, but what makes you writing so weird style?
silverDrops 18-Apr-13 10:38am
just because the ie6 haven't been give up entirly in our country.
ryanb31 18-Apr-13 10:43am
I don't know anyone still supporting IE6, except for you I guess. :)
Stephen Hewison 18-Apr-13 15:03pm
No, I have some large, slow moving, corporate machines as clients that still run IE6 as part of their workstation image.
Sergey Alexandrovich Kryukov 18-Apr-13 15:52pm
What IE6?! Did you ask about IE6, too? It's well known what to do with it.
silverDrops 18-Apr-13 10:45am
silverDrops 18-Apr-13 10:51am
The topic runs so far away from its point,or I just to search the articles about different render way of IE8 and IE9,perhaps I can find some clue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 18 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100