[thelist] WinXP, IE7 and CSS

Lee Kowalkowski lee.kowalkowski at googlemail.com
Tue Apr 10 03:43:56 CDT 2007


On 09/04/07, Stephen Rider <evolt_org at striderweb.com> wrote:
> On Apr 7, 2007, at 3:06 PM, Mark Groen wrote:
> > Appears that Internet Explorer 6 and 7 has some oddness to watch
> > for, and it
> > may change how some people do their CSS layouts.
> >
> > If the default text size is not default, View > Text Size > Smaller
> > for
> > example is set, both versions will apply a smaller value to
> > *anything* that
> > has been specified in ems, not just text and not uniformly. A div
> > that is set
> > 24ems wide will be smaller than what you would expect it to be, and
> > most
> > likely your nice CSS layout will be messy.
>
> Well... doesn't that make sense?  If em sizing is based on font size,
> then it should be based on font size.  So, if the browser is set to
> show fonts smaller, ems should shrink right along with them.
>
> I'm not a big fan of IE, but I wouldn't hold that one against them.
> Perfectly logical.
>
> Now, the words "not uniformly" are a whole different can o' worms....

Oh, that's just rung a bell.  IE does indeed have this weird thing
where if you use EM for your body/default font-size, the
text-size-based resizing is pretty wild.

The trick is to use % for your body/default font-size, then you can
use EM everywhere else.

-- 
Lee



More information about the thelist mailing list