David Butler wrote:>
> body { width:expression(d=document.compatMode=="CSS1Compat"?
> documentElement:document) &&(d.clientWidth<501?"500px":"auto");}
>
> What does the first part of this expression accomplish?
You mean the part of the expression that checks if IE6 is in standard
mode (CSS1 compatibility mode) or not ?
In that particular case the check is necessary because IE6 won't handle
the rest of the expression as intended when in Quirks mode.
I use such a 'compat-check' in most IE-expressions, to make IE6 switch
between arguments tailored for Standards or Quirks mode - making the
expression either mode-dependent or mode-independent, depending on the
actual case.
Getting the arguments wrong for the mode may otherwise make IE6 freeze
up or go into endless loops.
See...
<http://www.gunlaug.no/contents/wd_additions_14.html>
...for examples and some more info.
regards
Georg
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/