Previous Message
Next Message

IE 5 Mac Problems

Sent by Gunlaug_Sørtun on 13 April 2005 14:02


Zoe M. Gillenwater wrote:

> ... I wanted to let you know that your min-width script freezes IE6
> when you size your window down to the point where it kicks in.  This
> is a known issue with this script, but unfortunately, I can never
> remember the fixes to it -- everyone seems to recommend something
> else, and I can never get any of the suggestions to work!  Perhaps
> this email will prompt someone else to chime in with their foolproof
> fix for the script...

'width: expression(document.body.clientWidth < 760? "760px": "auto" );'

This isn't really a script. It is an IE-expression and as it is written
it will only work when IE6 is in quirks mode.

3 alternatives:
1: run IE6 in quirks mode by putting an <?xml "prolog" before the doctype.
2: use one expression for IE6 and one (the one above) for IE5+ since
they are always in quirks mode.
3: use a script that basically do exactly the same as those IE-expressions.

> If that fails, you could always switch to another script.  PVII has a
>  good one: http://www.projectseven.com/tutorials/css/minwidth/

I always use alternative 1, since that means I only have to "fix" IE/win
once on most issues. Will probably work for IE7 also, but who knows...

One other point: if someone turns off javascript-support in IE6, or ends
up doing so by setting "High Security" in XP-SP2, then both expressions
and scripts will fail. Set a fixed width before any expressions or
scripts kicks in, if a page need one to fall back on in IE/win.
I use this solution myself, of course.

regards
	Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: