Skip to content Skip to sidebar Skip to footer

Ie5 Max-width Support & Posible Solution

I simply wanna set a max and a min width to my content in my IE5 compatible site i read out of this site that the solution below could solve it, in this following example i only sh

Solution 1:

If found out what made it bug

it seems that IE5 for some odd reason ignore the expression if your normal statement isn't width and not max-width see solution below

* html.wrapper { 
   width: expression( document.body.clientWidth > 960 ? "961px" : "auto" ); /* sets max-width for IE */
}
html.wrapper{
  width: 960px;
}
html.gtie7.wrapper{
  max-width: 960px;
  width: auto;
}

hope it was useful if anybody some day should run into the same problem

Post a Comment for "Ie5 Max-width Support & Posible Solution"