3 ms·
Actually for IE6/7 do: width: expression( document.body.clientWidth > 35 * parseInt(document.body.currentStyle.fontSize) ? "35em"
by ars 18y ago
Actually for IE6/7 do:
width: expression(
document.body.clientWidth >
35 * parseInt(document.body.currentStyle.fontSize)
?
"35em"
:
(document.body.clientWidth <
15 * parseInt(document.body.currentStyle.fontSize)
?
"15em"
:
"auto"
)
;
(Hope the indenting is readable.)
http://www.gunlaug.no/contents/wd_additions_14.html http://www.gunlaug.no/contents/wd_additions_14.html for some caveats and other notes, in particular you can not specify a font-size at all for the body element (if you do, then do the math yourself and not in the expression).