DebugBar Forums
Stay tuned : rss feed

Forum Home

advanced search

You are not logged in.


Forums are now closed as we moved them to google groups. You can use the following Google Groups to discuss about DebugBar and IETester products:

#1 2011-11-06 13:02:11

New member

Javascript-CSS-IE6 Hack does not work on W7-64-bit IE9 installed

The following IE6-CSS-Hack code should bring IE6 or earlier versions to shrink the width of the container with the id pagewrapper to 859px.

The code works with native IE6.

IMPORTANT: This effect appears on my Win7-64-bit Box with IE9 installed only. On my Vista-32-bit machine with also IE9 installed IETester works as expected. Tested IETester versions 0.4.9 to 0.4.11. No difference whether in user or administrator mode.


<script type="text/javascript">
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
  var nw="auto",w=document.documentElement.clientWidth;
  if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(859,859));}
#container {height: 1%;}


ph 55 wrote in … html#p3735 to unistall IE9 to fix a similar problem. So far I am not willing to uninstall IE9 just for IETester.

Kind regards, Hani